Fixing parsing of rationals: accept 1.0 as integer