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.
Merge pull request #5099 from perimosocordiae/patch-1

BUG: np.unique with chararray + inverse_index