Enable PathLikeSelector.make_index() to create indices from selectors comprising path identifiers of different lengths; update tests accordingly.