[Type checker] Look through reference storage types for typed patterns.
[Type checker] Look through reference storage types for typed patterns.

Fixes a regression caused by properly setting the context for checking
the type in a typed pattern.

harlanhaskins/swift,xwu/swift,aschwaighofer/swift,gregomni/swift,CodaFi/swift,nathawes/swift,tkremenek/swift,ahoppen/swift,aschwaighofer/swift,jmgc/swift,parkera/swift,CodaFi/swift,parkera/swift,rudkx/swift,xwu/swift,JGiola/swift,apple/swift,glessard/swift,stephentyrone/swift,hooman/swift,parkera/swift,rudkx/swift,hooman/swift,parkera/swift,jmgc/swift,airspeedswift/swift,airspeedswift/swift,roambotics/swift,allevato/swift,aschwaighofer/swift,aschwaighofer/swift,harlanhaskins/swift,JGiola/swift,xwu/swift,tkremenek/swift,benlangmuir/swift,airspeedswift/swift,benlangmuir/swift,stephentyrone/swift,hooman/swift,CodaFi/swift,rudkx/swift,jckarter/swift,rudkx/swift,apple/swift,harlanhaskins/swift,hooman/swift,atrick/swift,xwu/swift,gregomni/swift,aschwaighofer/swift,atrick/swift,airspeedswift/swift,CodaFi/swift,atrick/swift,apple/swift,xwu/swift,xwu/swift,roambotics/swift,jckarter/swift,jckarter/swift,JGiola/swift,atrick/swift,nathawes/swift,allevato/swift,roambotics/swift,gregomni/swift,nathawes/swift,tkremenek/swift,gregomni/swift,hooman/swift,parkera/swift,apple/swift,CodaFi/swift,harlanhaskins/swift,gregomni/swift,roambotics/swift,glessard/swift,tkremenek/swift,airspeedswift/swift,CodaFi/swift,roambotics/swift,stephentyrone/swift,jckarter/swift,parkera/swift,atrick/swift,jmgc/swift,ahoppen/swift,ahoppen/swift,aschwaighofer/swift,rudkx/swift,hooman/swift,jmgc/swift,stephentyrone/swift,airspeedswift/swift,glessard/swift,ahoppen/swift,harlanhaskins/swift,rudkx/swift,nathawes/swift,jckarter/swift,harlanhaskins/swift,aschwaighofer/swift,benlangmuir/swift,allevato/swift,stephentyrone/swift,allevato/swift,nathawes/swift,ahoppen/swift,apple/swift,gregomni/swift,nathawes/swift,CodaFi/swift,glessard/swift,JGiola/swift,JGiola/swift,jmgc/swift,tkremenek/swift,glessard/swift,benlangmuir/swift,jckarter/swift,tkremenek/swift,nathawes/swift,parkera/swift,harlanhaskins/swift,allevato/swift,apple/swift,hooman/swift,allevato/swift,benlangmuir/swift,xwu/swift,roambotics/swift,airspeedswift/swift,atrick/swift,JGiola/swift,stephentyrone/swift,jmgc/swift,stephentyrone/swift,ahoppen/swift,allevato/swift,tkremenek/swift,glessard/swift,parkera/swift,jmgc/swift,jckarter/swift,benlangmuir/swift