Allow Relation#rewhere to work with infinite range values

Addressing @sgrif 's comment [here](https://github.com/rails/rails/pull/17330#issuecomment-60541781), `Relation#rewhere` will work with infinite Range values as well.