Modified the playground transform to fix two problems related to scopes:
Modified the playground transform to fix two
problems related to scopes:

  - First, the return value was being printed
    after the relevant scope exits.  I switched
    the order.

  - Second, two "global" scopes were being
    emitted -- one for the wrapper function,
    and one for the wrapper "if" statement.  We
    only need one, so I added necessary gating.

<rdar://problem/16765632>


Swift SVN r17122

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