Fixed bug #65304 (Use of max int in array_sum)