[GHC] #10788: performance regression involving minimum (and maybe Vector)