Fix searchsorted for Ranges