Updated TransactionIterator::rewind()

Updated `TransactionIterator::rewind()` to call the `rewind()` of the inner iterator. This resolves problems that might arise if the inner iterator requires rewinding in order to yield items (e.g., anything that is `instanceof IteratorIterator`).