Fix newarray.