[4.2] IRGen: Fix type of a global with tail allocated storage
Cast the result to the expected type rather than a special
'..._tailelemsN' type.
Scope: Usage of a global array if involved in a phi node (control-flow)
could cause a compiler assert.
Risk: Low.
Testing: Swift CI
Reviewed: Erik Eckstein
rdar://44563038