On Generalized Convexity for Set and Vector-Valued Functions