Fix a mangling ambiguity by ensuring that manglings never end in a digit.  This penalizes the manglings of things using builtin types but is kinder to the manglings of tuples.
Fix a mangling ambiguity by ensuring that manglings never end
in a digit.  This penalizes the manglings of things using
builtin types but is kinder to the manglings of tuples.

Also, invent a not-unreasonable mangling for generic function
types and archtypes within them.

Swift SVN r2461

danielmartin/swift,modocache/swift,KrishMunot/swift,bitjammer/swift,jtbandes/swift,huonw/swift,sschiau/swift,brentdax/swift,bitjammer/swift,IngmarStein/swift,emilstahl/swift,LeoShimonaka/swift,alblue/swift,nathawes/swift,return/swift,hughbe/swift,ahoppen/swift,CodaFi/swift,zisko/swift,kusl/swift,gmilos/swift,apple/swift,Jnosh/swift,arvedviehweger/swift,return/swift,swiftix/swift,xedin/swift,harlanhaskins/swift,swiftix/swift,danielmartin/swift,aschwaighofer/swift,danielmartin/swift,kperryua/swift,gottesmm/swift,kentya6/swift,devincoughlin/swift,Ivacker/swift,slavapestov/swift,danielmartin/swift,cbrentharris/swift,karwa/swift,gribozavr/swift,frootloops/swift,jtbandes/swift,ben-ng/swift,harlanhaskins/swift,OscarSwanros/swift,tkremenek/swift,CodaFi/swift,gottesmm/swift,emilstahl/swift,codestergit/swift,aschwaighofer/swift,nathawes/swift,gottesmm/swift,khizkhiz/swift,tkremenek/swift,arvedviehweger/swift,amraboelela/swift,gottesmm/swift,mightydeveloper/swift,uasys/swift,emilstahl/swift,djwbrown/swift,mightydeveloper/swift,karwa/swift,sdulal/swift,ben-ng/swift,modocache/swift,xwu/swift,kperryua/swift,uasys/swift,codestergit/swift,slavapestov/swift,hughbe/swift,IngmarStein/swift,shahmishal/swift,kperryua/swift,airspeedswift/swift,swiftix/swift.old,aschwaighofer/swift,slavapestov/swift,parkera/swift,huonw/swift,manavgabhawala/swift,xwu/swift,parkera/swift,sdulal/swift,gmilos/swift,alblue/swift,return/swift,stephentyrone/swift,rudkx/swift,CodaFi/swift,sdulal/swift,apple/swift,kentya6/swift,therealbnut/swift,kusl/swift,lorentey/swift,alblue/swift,parkera/swift,felix91gr/swift,glessard/swift,milseman/swift,shahmishal/swift,milseman/swift,calebd/swift,jopamer/swift,modocache/swift,adrfer/swift,tjw/swift,KrishMunot/swift,kperryua/swift,allevato/swift,ahoppen/swift,therealbnut/swift,roambotics/swift,khizkhiz/swift,benlangmuir/swift,calebd/swift,kperryua/swift,lorentey/swift,jtbandes/swift,glessard/swift,SwiftAndroid/swift,manavgabhawala/swift,harlanhaskins/swift,modocache/swift,gmilos/swift,jtbandes/swift,shahmishal/swift,arvedviehweger/swift,alblue/swift,gregomni/swift,gregomni/swift,LeoShimonaka/swift,tjw/swift,karwa/swift,MukeshKumarS/Swift,djwbrown/swift,austinzheng/swift,dduan/swift,aschwaighofer/swift,frootloops/swift,therealbnut/swift,mightydeveloper/swift,mightydeveloper/swift,IngmarStein/swift,devincoughlin/swift,gregomni/swift,hooman/swift,LeoShimonaka/swift,practicalswift/swift,tardieu/swift,allevato/swift,tardieu/swift,kentya6/swift,danielmartin/swift,swiftix/swift.old,gribozavr/swift,xwu/swift,brentdax/swift,harlanhaskins/swift,shajrawi/swift,jtbandes/swift,hughbe/swift,codestergit/swift,johnno1962d/swift,hughbe/swift,jckarter/swift,kstaring/swift,dreamsxin/swift,jmgc/swift,JaSpa/swift,lorentey/swift,bitjammer/swift,adrfer/swift,felix91gr/swift,return/swift,shahmishal/swift,SwiftAndroid/swift,parkera/swift,aschwaighofer/swift,amraboelela/swift,deyton/swift,amraboelela/swift,parkera/swift,LeoShimonaka/swift,aschwaighofer/swift,sdulal/swift,SwiftAndroid/swift,CodaFi/swift,aschwaighofer/swift,LeoShimonaka/swift,adrfer/swift,rudkx/swift,LeoShimonaka/swift,airspeedswift/swift,OscarSwanros/swift,Jnosh/swift,OscarSwanros/swift,kstaring/swift,jckarter/swift,modocache/swift,glessard/swift,devincoughlin/swift,natecook1000/swift,slavapestov/swift,tkremenek/swift,ken0nek/swift,calebd/swift,apple/swift,austinzheng/swift,emilstahl/swift,gribozavr/swift,kusl/swift,sdulal/swift,Ivacker/swift,swiftix/swift.old,jmgc/swift,tinysun212/swift-windows,OscarSwanros/swift,kusl/swift,zisko/swift,hooman/swift,hooman/swift,natecook1000/swift,tinysun212/swift-windows,JGiola/swift,gottesmm/swift,kstaring/swift,atrick/swift,tkremenek/swift,mightydeveloper/swift,russbishop/swift,Jnosh/swift,huonw/swift,ken0nek/swift,bitjammer/swift,kusl/swift,lorentey/swift,ken0nek/swift,shahmishal/swift,ben-ng/swift,benlangmuir/swift,jckarter/swift,alblue/swift,allevato/swift,practicalswift/swift,JaSpa/swift,brentdax/swift,apple/swift,sschiau/swift,johnno1962d/swift,xedin/swift,xedin/swift,khizkhiz/swift,gottesmm/swift,MukeshKumarS/Swift,cbrentharris/swift,JaSpa/swift,gribozavr/swift,LeoShimonaka/swift,nathawes/swift,devincoughlin/swift,IngmarStein/swift,khizkhiz/swift,atrick/swift,swiftix/swift,practicalswift/swift,atrick/swift,sschiau/swift,uasys/swift,bitjammer/swift,KrishMunot/swift,therealbnut/swift,shahmishal/swift,swiftix/swift,milseman/swift,uasys/swift,benlangmuir/swift,ahoppen/swift,kusl/swift,hughbe/swift,cbrentharris/swift,Ivacker/swift,shajrawi/swift,MukeshKumarS/Swift,milseman/swift,alblue/swift,allevato/swift,devincoughlin/swift,jopamer/swift,natecook1000/swift,tinysun212/swift-windows,emilstahl/swift,gribozavr/swift,austinzheng/swift,calebd/swift,xedin/swift,jckarter/swift,OscarSwanros/swift,uasys/swift,deyton/swift,slavapestov/swift,arvedviehweger/swift,MukeshKumarS/Swift,hooman/swift,jckarter/swift,lorentey/swift,ken0nek/swift,tardieu/swift,karwa/swift,kentya6/swift,stephentyrone/swift,gribozavr/swift,russbishop/swift,ben-ng/swift,zisko/swift,sschiau/swift,huonw/swift,kusl/swift,frootloops/swift,uasys/swift,brentdax/swift,devincoughlin/swift,russbishop/swift,airspeedswift/swift,kusl/swift,tinysun212/swift-windows,Jnosh/swift,shahmishal/swift,sschiau/swift,felix91gr/swift,swiftix/swift.old,kstaring/swift,jmgc/swift,tardieu/swift,emilstahl/swift,brentdax/swift,airspeedswift/swift,return/swift,deyton/swift,roambotics/swift,tjw/swift,zisko/swift,natecook1000/swift,nathawes/swift,austinzheng/swift,stephentyrone/swift,practicalswift/swift,huonw/swift,JGiola/swift,hooman/swift,tjw/swift,codestergit/swift,kentya6/swift,shajrawi/swift,gregomni/swift,gregomni/swift,amraboelela/swift,djwbrown/swift,ben-ng/swift,cbrentharris/swift,parkera/swift,SwiftAndroid/swift,atrick/swift,airspeedswift/swift,dreamsxin/swift,russbishop/swift,lorentey/swift,felix91gr/swift,gregomni/swift,codestergit/swift,stephentyrone/swift,uasys/swift,Ivacker/swift,modocache/swift,apple/swift,allevato/swift,kperryua/swift,shajrawi/swift,sschiau/swift,danielmartin/swift,Jnosh/swift,lorentey/swift,airspeedswift/swift,stephentyrone/swift,modocache/swift,xwu/swift,xedin/swift,khizkhiz/swift,karwa/swift,JaSpa/swift,IngmarStein/swift,manavgabhawala/swift,johnno1962d/swift,huonw/swift,xedin/swift,benlangmuir/swift,tinysun212/swift-windows,KrishMunot/swift,glessard/swift,emilstahl/swift,tkremenek/swift,ahoppen/swift,codestergit/swift,zisko/swift,calebd/swift,xedin/swift,natecook1000/swift,hooman/swift,arvedviehweger/swift,return/swift,karwa/swift,swiftix/swift,manavgabhawala/swift,russbishop/swift,Ivacker/swift,practicalswift/swift,sschiau/swift,stephentyrone/swift,ben-ng/swift,shahmishal/swift,jopamer/swift,nathawes/swift,devincoughlin/swift,slavapestov/swift,johnno1962d/swift,shajrawi/swift,amraboelela/swift,kentya6/swift,hooman/swift,jtbandes/swift,apple/swift,gmilos/swift,JGiola/swift,MukeshKumarS/Swift,arvedviehweger/swift,xedin/swift,dduan/swift,dduan/swift,rudkx/swift,deyton/swift,atrick/swift,tardieu/swift,benlangmuir/swift,sdulal/swift,roambotics/swift,austinzheng/swift,lorentey/swift,ahoppen/swift,tjw/swift,JaSpa/swift,khizkhiz/swift,tkremenek/swift,practicalswift/swift,JGiola/swift,ken0nek/swift,brentdax/swift,milseman/swift,Ivacker/swift,harlanhaskins/swift,Jnosh/swift,milseman/swift,natecook1000/swift,felix91gr/swift,SwiftAndroid/swift,Ivacker/swift,codestergit/swift,jtbandes/swift,stephentyrone/swift,devincoughlin/swift,practicalswift/swift,allevato/swift,adrfer/swift,natecook1000/swift,CodaFi/swift,jopamer/swift,allevato/swift,swiftix/swift,airspeedswift/swift,shajrawi/swift,xwu/swift,gottesmm/swift,tinysun212/swift-windows,kentya6/swift,CodaFi/swift,kstaring/swift,kstaring/swift,dduan/swift,OscarSwanros/swift,calebd/swift,alblue/swift,LeoShimonaka/swift,jopamer/swift,KrishMunot/swift,sschiau/swift,mightydeveloper/swift,kstaring/swift,parkera/swift,russbishop/swift,KrishMunot/swift,ken0nek/swift,mightydeveloper/swift,amraboelela/swift,sdulal/swift,KrishMunot/swift,adrfer/swift,djwbrown/swift,harlanhaskins/swift,MukeshKumarS/Swift,gribozavr/swift,calebd/swift,rudkx/swift,therealbnut/swift,rudkx/swift,arvedviehweger/swift,austinzheng/swift,rudkx/swift,djwbrown/swift,roambotics/swift,ken0nek/swift,johnno1962d/swift,frootloops/swift,shajrawi/swift,IngmarStein/swift,therealbnut/swift,xwu/swift,atrick/swift,roambotics/swift,SwiftAndroid/swift,practicalswift/swift,cbrentharris/swift,kperryua/swift,glessard/swift,manavgabhawala/swift,frootloops/swift,JaSpa/swift,nathawes/swift,CodaFi/swift,swiftix/swift.old,parkera/swift,brentdax/swift,IngmarStein/swift,JGiola/swift,dduan/swift,nathawes/swift,cbrentharris/swift,ben-ng/swift,bitjammer/swift,gmilos/swift,JaSpa/swift,adrfer/swift,jckarter/swift,sdulal/swift,karwa/swift,return/swift,tardieu/swift,jckarter/swift,jmgc/swift,zisko/swift,emilstahl/swift,tkremenek/swift,adrfer/swift,harlanhaskins/swift,tinysun212/swift-windows,MukeshKumarS/Swift,benlangmuir/swift,frootloops/swift,deyton/swift,hughbe/swift,djwbrown/swift,tjw/swift,dduan/swift,roambotics/swift,gribozavr/swift,SwiftAndroid/swift,felix91gr/swift,karwa/swift,danielmartin/swift,ahoppen/swift,frootloops/swift,Jnosh/swift,mightydeveloper/swift,tardieu/swift,Ivacker/swift,bitjammer/swift,gmilos/swift,swiftix/swift.old,johnno1962d/swift,slavapestov/swift,russbishop/swift,gmilos/swift,felix91gr/swift,jmgc/swift,swiftix/swift.old,swiftix/swift.old,johnno1962d/swift,milseman/swift,tjw/swift,xwu/swift,therealbnut/swift,jmgc/swift,djwbrown/swift,JGiola/swift,jopamer/swift,OscarSwanros/swift,manavgabhawala/swift,kentya6/swift,khizkhiz/swift,swiftix/swift,jmgc/swift,huonw/swift,shajrawi/swift,amraboelela/swift,hughbe/swift,manavgabhawala/swift,dduan/swift,zisko/swift,jopamer/swift,cbrentharris/swift,austinzheng/swift,deyton/swift,cbrentharris/swift,deyton/swift,glessard/swift