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

closes #6915

overflow when doing sum (and mean) using bottleneck/numpy on 32-bit platforms with 32-bit dtypes