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