make the ModelToIdTransformer work with array