RangeIndex can be built on the basis of `_row_lengths`. Materializing lengths is much cheaper than materializing indices.