[Git][ghc/ghc][wip/backports-9.14] Fix a long standing bug in the coercion optimiser