Fixed bugs in require statement order and added 'singleton' require for RubyPlusPlus class.