issue #3935 Refactor some functions about array operation.
Merge pull request #1600 from SmallAiTT/CCGame_dev3.0

issue #3935 Refactor some functions about array operation.