Support Float::INFINITY in ranges

As discussed on rubyonrails-core.