Fixed a BigDecimal incompatibility (closes #3).