Fix rational division and comparison bugs, and change the ExtendedRational ToString method