Added support for inputTypes to be arrays