Refactor utilities; Object utilities with tests, from RubySharp