cleanup.
remove Array dependency in CollectionDeserializer.