issue #2771 physical, fix some compile error when CC_USE_ARRAY_VECTOR set to 1

still have some compile error in UI part.