Adding some array functions to the object wrapper.