added support for array conversion to model