Introduced AbstractIterator and implemented one for Array.