Fix SUM with short and BigDecimal.