Implement the basic stuff for array iterators.