Fix two bugs in rule-matching
Fix two bugs in rule-matching

These two typo-like bugs have been there for a long time!

  One concerns the selection of overlapping rules, 
  which was back to front

  The other was name-lining-up bug in the Case case of matching

This patch also arranges to export matchN. 
  (Not a good name, but still!)



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