[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 8 commits: Fix issues with toRational for types capable to represent infinite and not-a-number values