Added an adapter to expand pair in output_iterator.