Fix searchsorted for Ranges
Merge pull request #6776 from wsliang/searchsorted

Fix searchsorted for Ranges