Update rational.cc

Fix #93 : Unify parsing of text strings into Rational