Added array support in code geneartion script.
Autorun unit test when prebuild.bat is launched.