Adaptation and Constraint in the Complex Life Cycles of Animals