Add test for collections (Array) and reference objects in the collection.

Quick example of potential side effects on reference objects and mutability.