Small code cleanups for RubyObject.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>