Fixed bug in array resizing in the StdLib.