correct the type detecting order forgetNodeTypeName
Merge pull request #2809 from edwardzhou/master

issue #2103: correct the type detecting order for Lua CCBProxy::getNodeTypeName.