[Git][ghc/ghc][wip/sjakobi/elem-tests] Improve test for specialization of `elem`