Bugfixes to the Set class.
1: If adding an object to the container then only retain the object again provided it's not already been added. The underlying std::set does not support duplicate entries. (see: www.cocos2d-x.org/boards/6/topics/10876)
2: When removing an object only CC_SAFE_RELEASE it if it was actually contained in the set. (see: http://www.cocos2d-x.org/boards/6/topics/10876)
3: Fix a bug in 'removeAllObjects' where the underlying std::set container was not being cleared. (see: https://github.com/cocos2d/cocos2d-x/issues/2283)
Merge pull request #3057 from DarraghCoy/ccset_bug_fixes

Bugfixes to the Set class.
[ci skip]
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into develop
* Spine 라이브러리 수정.