Fix Trac #3176: intercept naughty record selectors
Fix Trac #3176: intercept naughty record selectors

When making record selectors into ordinary functions (rather than
magial implicit Ids) I forgot that they could therefore show up in 
the *local* TcEnv, not the global one.  This fixes that problem,
and thereby Trac #3176.


vTurbine/ghc,snoyberg/ghc,forked-upstream-packages-for-ghcjs/ghc,TomMD/ghc,frantisekfarka/ghc-dsi,ryantm/ghc,fmthoma/ghc,anton-dessiatov/ghc,christiaanb/ghc,GaloisInc/halvm-ghc,nathyong/microghc-ghc,nushio3/ghc,tibbe/ghc,mettekou/ghc,olsner/ghc,mcmaniac/ghc,ryantm/ghc,ml9951/ghc,vikraman/ghc,lukexi/ghc,GaloisInc/halvm-ghc,tibbe/ghc,nomeata/ghc,mcmaniac/ghc,siddhanathan/ghc,sgillespie/ghc,nathyong/microghc-ghc,vTurbine/ghc,elieux/ghc,sgillespie/ghc,TomMD/ghc,anton-dessiatov/ghc,jstolarek/ghc,gridaphobe/ghc,snoyberg/ghc,tibbe/ghc,gridaphobe/ghc,green-haskell/ghc,gridaphobe/ghc,ezyang/ghc,bitemyapp/ghc,wxwxwwxxx/ghc,nushio3/ghc,jstolarek/ghc,christiaanb/ghc,anton-dessiatov/ghc,sdiehl/ghc,tjakway/ghcjvm,hferreiro/replay,green-haskell/ghc,oldmanmike/ghc,elieux/ghc,vTurbine/ghc,mettekou/ghc,siddhanathan/ghc,ekmett/ghc,spacekitteh/smcghc,oldmanmike/ghc,gridaphobe/ghc,GaloisInc/halvm-ghc,tibbe/ghc,holzensp/ghc,ezyang/ghc,ekmett/ghc,GaloisInc/halvm-ghc,olsner/ghc,frantisekfarka/ghc-dsi,ekmett/ghc,fmthoma/ghc,TomMD/ghc,lukexi/ghc,TomMD/ghc,oldmanmike/ghc,mcschroeder/ghc,sdiehl/ghc,AlexanderPankiv/ghc,jstolarek/ghc,ml9951/ghc,forked-upstream-packages-for-ghcjs/ghc,nkaretnikov/ghc,ml9951/ghc,sgillespie/ghc,elieux/ghc,nathyong/microghc-ghc,vTurbine/ghc,snoyberg/ghc,olsner/ghc,ekmett/ghc,AlexanderPankiv/ghc,urbanslug/ghc,acowley/ghc,olsner/ghc,frantisekfarka/ghc-dsi,da-x/ghc,mcmaniac/ghc,hferreiro/replay,lukexi/ghc,siddhanathan/ghc,jstolarek/ghc,sdiehl/ghc,oldmanmike/ghc,fmthoma/ghc,bitemyapp/ghc,tjakway/ghcjvm,gcampax/ghc,vikraman/ghc,ryantm/ghc,shlevy/ghc,spacekitteh/smcghc,lukexi/ghc,acowley/ghc,AlexanderPankiv/ghc,siddhanathan/ghc,gcampax/ghc,ilyasergey/GHC-XAppFix,acowley/ghc,ghc-android/ghc,nomeata/ghc,tjakway/ghcjvm,olsner/ghc,vTurbine/ghc,tjakway/ghcjvm,lukexi/ghc-7.8-arm64,mettekou/ghc,wxwxwwxxx/ghc,AlexanderPankiv/ghc,ezyang/ghc,nkaretnikov/ghc,jstolarek/ghc,frantisekfarka/ghc-dsi,gcampax/ghc,ryantm/ghc,hferreiro/replay,TomMD/ghc,green-haskell/ghc,mfine/ghc,ghc-android/ghc,nkaretnikov/ghc,nkaretnikov/ghc,siddhanathan/ghc,vikraman/ghc,da-x/ghc,anton-dessiatov/ghc,shlevy/ghc,shlevy/ghc,vTurbine/ghc,ryantm/ghc,mcmaniac/ghc,mcschroeder/ghc,gcampax/ghc,ezyang/ghc,ilyasergey/GHC-XAppFix,urbanslug/ghc,christiaanb/ghc,christiaanb/ghc,lukexi/ghc-7.8-arm64,mettekou/ghc,wxwxwwxxx/ghc,lukexi/ghc-7.8-arm64,sdiehl/ghc,holzensp/ghc,holzensp/ghc,sgillespie/ghc,tjakway/ghcjvm,vikraman/ghc,hferreiro/replay,green-haskell/ghc,mcmaniac/ghc,mcschroeder/ghc,acowley/ghc,christiaanb/ghc,ghc-android/ghc,holzensp/ghc,ghc-android/ghc,spacekitteh/smcghc,urbanslug/ghc,bitemyapp/ghc,green-haskell/ghc,ghc-android/ghc,lukexi/ghc,shlevy/ghc,urbanslug/ghc,oldmanmike/ghc,sgillespie/ghc,mcschroeder/ghc,anton-dessiatov/ghc,ezyang/ghc,ekmett/ghc,nushio3/ghc,GaloisInc/halvm-ghc,anton-dessiatov/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,vikraman/ghc,ghc-android/ghc,elieux/ghc,ml9951/ghc,fmthoma/ghc,lukexi/ghc-7.8-arm64,da-x/ghc,olsner/ghc,olsner/ghc,gcampax/ghc,tibbe/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,da-x/ghc,mettekou/ghc,elieux/ghc,ghc-android/ghc,vikraman/ghc,siddhanathan/ghc,bitemyapp/ghc,gridaphobe/ghc,GaloisInc/halvm-ghc,spacekitteh/smcghc,tjakway/ghcjvm,acowley/ghc,AlexanderPankiv/ghc,urbanslug/ghc,mfine/ghc,siddhanathan/ghc,oldmanmike/ghc,christiaanb/ghc,hferreiro/replay,nomeata/ghc,wxwxwwxxx/ghc,wxwxwwxxx/ghc,AlexanderPankiv/ghc,TomMD/ghc,sdiehl/ghc,mfine/ghc,snoyberg/ghc,ilyasergey/GHC-XAppFix,mfine/ghc,snoyberg/ghc,mcschroeder/ghc,acowley/ghc,sdiehl/ghc,forked-upstream-packages-for-ghcjs/ghc,ezyang/ghc,oldmanmike/ghc,sgillespie/ghc,ml9951/ghc,nomeata/ghc,nathyong/microghc-ghc,acowley/ghc,ilyasergey/GHC-XAppFix,frantisekfarka/ghc-dsi,ml9951/ghc,gridaphobe/ghc,vTurbine/ghc,vikraman/ghc,AlexanderPankiv/ghc,lukexi/ghc-7.8-arm64,shlevy/ghc,sdiehl/ghc,nushio3/ghc,christiaanb/ghc,mfine/ghc,da-x/ghc,da-x/ghc,tjakway/ghcjvm,shlevy/ghc,snoyberg/ghc,gcampax/ghc,TomMD/ghc,fmthoma/ghc,wxwxwwxxx/ghc,forked-upstream-packages-for-ghcjs/ghc,nkaretnikov/ghc,mettekou/ghc,nushio3/ghc,hferreiro/replay,nkaretnikov/ghc,snoyberg/ghc,urbanslug/ghc,urbanslug/ghc,mfine/ghc,nathyong/microghc-ghc,bitemyapp/ghc,nushio3/ghc,ml9951/ghc,mcschroeder/ghc,mettekou/ghc,mcschroeder/ghc,fmthoma/ghc,nushio3/ghc,anton-dessiatov/ghc,nomeata/ghc,ml9951/ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,spacekitteh/smcghc,da-x/ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,hferreiro/replay,forked-upstream-packages-for-ghcjs/ghc,fmthoma/ghc,shlevy/ghc,gcampax/ghc,nathyong/microghc-ghc,elieux/ghc,sgillespie/ghc,holzensp/ghc,mfine/ghc,elieux/ghc