added a method to obtain an immutable proxy object from a mutable array