Draft+tests for new RangeIterator (ticket #37).