fixed code in Collection class where instance of ArrayIterator is to be returned