ArrayCollection's constructor updated to enforce type safety
Performance improvement, reduced function calls.
Style updates