remove bigfloat dependence from rationalize
fix try/catch error
Merge pull request #8611 from simonbyrne/rationalize

remove bigfloat dependence from rationalize