[Array] fix bug in .ToStringTiles2D()

If a zero lenght array was provided, the AI would crash.
[Build] build script improvements

 - don't delete files to recycle bin
 - output total lines of code