iterator: Add `IteratorUtil::peek_` method

This can be useful for inserting debugging code at different steps in an iterator pipeline.