Support lists and objects in inputmodels.