You can use hash_code(key-string) -> CCObject pair instead of hash_code(key-string) -> string pair.
Take a look at how Ricardo works https://github.com/cocos2d/cocos2d-x/pull/2685/files