sum correctly overflow in the integer, na.rm = false case. closes #308
was issue #304
was issue #304