Add reset function for iterators and removed ThrowingIterator.