Improve asserts.
Merge branch 'develop-v3' of https://github.com/cocos2d/cocos2d-iphone into HEAD