GDS-1054: fix BigDecimal rounding issues.