Exploring the ecological and evolutionary consequences of clonal and aggregative development during the transition to multicellularity