Developmental inflexibility of larval tapeworms in response to resource variation.