Add #to_s method to rails version

now Rails.version returns an instance of Gem::Version
cc @rafaelfranca 
ref https://github.com/rails/rails/pull/8501, https://travis-ci.org/rails/rails/jobs/5750326