In doTopReactDict, try lookup even if fundeps work
In doTopReactDict, try lookup even if fundeps work

Previously we looked for fundeps, and if any fired we
didn't try to solve the constraint.  But that's wrong
(see Note [Weird fundeps]).  Now I solve first and only
if that fails try fundeps.  Code is neater too.

Fixes Trac #7875

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