Make sure perform outputs an numpy.ndarray.

Return type of np.searchsorted is the same as ``v`` argument. This is problematic since
logically this Op should return a TensorType but it was not the case when called with a
single number for the ``v`` argument.