Added explicit handling for Decimal and Fraction types.