support serializing Decimal