Copy iterable selector passed to PathLikeSelector.expand() to prevent it from being modified by the method.