More work on BatchRangeIterator.