[DoctrineBridge] Loosened CollectionToArrayTransformer::transform() to accept arrays