BUG: Bug in sum/mean on 32-bit platforms on overflows (GH6915)