The development of resource polymorphism – Effects of diet, predation risk and population dynamical feedbacks.