iterator: Add `IteratorUtil::peek_` method
auto merge of #7604 : apasel422/rust/peek, r=pcwalton

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