issue #4729: Move CC_INVALID_INDEX from ccCArray.h to ccTypes.h,
probably there is a better place to define this variable, but let's just
choose ccTypes.h now.
issue #4729: don't use 'using namespace std;'
issue #4729: NULL -> nullptr in constructor or setXXX(NULL)
issue #4729: include "ccTypes.h" in ccCArray.cpp for CC_INVALID_INDEX