Issue47

Fixes #47.

Provides a more robust implementation of Fraction.equals(...) The rest of #47 was pretty much covered by #59.

This PR is based on #59, so #59 should probably be merged first.