fixed SafeToRubyVisitor for ruby-head