Small cleanup for RubyObject.