Add additional sanity checks to the debug scope creation.
Add additional sanity checks to the debug scope creation.

Swift SVN r22625

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