New feature: array.resize(int) method

Resizes array to specified size.