FLEX-34108 add toJSON to ArrayCollection and ArrayList