Speed up PathLikeSelector.make_index().