[GHC] #10720: New GHC fails to specialize imported function