[Git][ghc/ghc][wip/T26115] Fix two significant bugs