Collection serialization

Added a collection extension to serialize ArrayCollection to an array.