bug #16: array.resize may lead to a crash if new size > current max.
Merge branch 'apidev' of https://github.com/snake5/sgscript into apidev