Fixed handling both numpy.unique1d and numpy.unique