Fixes #54.  Note that Fraction.pow(...) relies on Math.pow(double, double),
because there doesn't seem to be a standard implementation of
BigDecimal.pow(...).