[Git][ghc/ghc][wip/T26003] Track rewriter sets more accurately in constraint solving