Allow decimal.Decimal in to_dict method