[ruby-mode] Bunch of fixes that should solve most of the current problems