Generalized norms of reaction for ecological developmental biology