Add support for array data type to allow passing array of models