[NFC] Make Sema -dump flags work when Sema fails
[NFC] Make Sema -dump flags work when Sema fails

`-dump-scope-maps` and `-dump-type-refinement-contexts` now dump out the content they're designed to emit even when there's an error during semantic analysis that would previously have stopped them from running.

atrick/swift,glessard/swift,roambotics/swift,benlangmuir/swift,roambotics/swift,rudkx/swift,rudkx/swift,glessard/swift,JGiola/swift,ahoppen/swift,ahoppen/swift,ahoppen/swift,atrick/swift,benlangmuir/swift,atrick/swift,apple/swift,roambotics/swift,JGiola/swift,apple/swift,gregomni/swift,rudkx/swift,glessard/swift,JGiola/swift,glessard/swift,benlangmuir/swift,benlangmuir/swift,rudkx/swift,apple/swift,glessard/swift,gregomni/swift,atrick/swift,apple/swift,ahoppen/swift,rudkx/swift,glessard/swift,benlangmuir/swift,atrick/swift,ahoppen/swift,JGiola/swift,roambotics/swift,JGiola/swift,apple/swift,gregomni/swift,gregomni/swift,ahoppen/swift,gregomni/swift,apple/swift,benlangmuir/swift,gregomni/swift,roambotics/swift,roambotics/swift,rudkx/swift,JGiola/swift,atrick/swift