refactor _real_to_rational
replace now-passing evalf test
Merge pull request #3 from smichr/issue-3428

refactor _real_to_rational