Implement dispose for the ArrayCollection