[Git][ghc/ghc][wip/T27844] Refactor and simplify solver's unification code