Use cocos2d::Object instead of cocos2d::Ref.