Fix ArrayCollection sometimes serialized as object