[GHC] #12820: Regression around pattern synonyms and higher-rank types