[GHC] #13587: addTopDecls fails with typed Template Haskell