Fix overflow checking in newarray with 64 bit array lengths. Fixes part of #13544.