fixed creating model for array types