I wasn't able to reproduce the bug, but I changed the API a bit in order to prevent overload resolution issues:
https://github.com/cocos2d/cocos2d-x/pull/5073