Fixed the typedefs of the iterators to be of the correct type (i.e the iterator type of the array)