Fix for unclear array.resize() error message