BUG: np.unique with chararray + inverse_index

The call to `empty_like` was trying to use the `chararray` subclass,
which doesn't support the `np.intp` dtype.