Add Cursor#next_range for iterating up to a specified key.