Fix compatibility wrapper for Decimal.