Fixed a bug with render state caching and added unit tests for it.
Fix compiler warning

Cast NSUInteger to unsigned long and use %lu format specifier

http://useyourloaf.com/blog/2014/04/13/format-string-issue-using-nsinteger.html
Approved by @sergey . Hotfix for Label TTF outlines.
Merge pull request #959 from jtwigg/v3.2

Hot fix for TTF outlines.
Updates version to 3.2.1
fixing CCRenderTexture -clearStencil
Merge pull request #972 from ksjogo/969

fixing CCRenderTexture -clearStencil
Merge pull request #962 from programmarchy/patch-1

Fix compiler warning
Merge branch 'v3.1' into v3.2
Merge branch 'v3.2' into develop

Conflicts:
	VERSION
	cocos2d/CCLabelTTF.m
	cocos2d/CCRenderer.m
	external/ObjectAL