Issue #2416: replace some deprecated APIs to new APIs

1. replace some deprecated APIs to new APIs
2. rename cc.Node's _StateCallbackType to _stateCallbackType