support for array and array with collections of objects