Fix Relation.rewhere to work with Range values
Merge pull request #17330 from DanOlson/rewhere

Fix Relation#rewhere to work with Range values