`IndexMaskSegment` has more invariants (sorted unique indices) than a plain `OffsetSpan`. This also allows us to add methods to `IndexMaskSegment` that wouldn't fit in `OffsetSpan`. Pull Request: https://projects.blender.org/blender/blender/pulls/118603