[GHC] #13687: GHC internal error: associated type not in scope during typechecking