[Git][ghc/ghc][wip/9.12.3-backports] QuickLook: do a shape test before unifying