Synchronizing some JSB changes in cocos2d-iphone. Fix a bug of "Too much recursion" in loop.