Work around DBAPI issues with Decimal subclasses