Compiles with improved CCArray

Compiles both with std::vector or ccCArray
Fixes crash when reordering
small fix to make it compile with std::vector too
Merge pull request #3440 from ricardoquesada/better_array

Better array