This patch handles both implicit and explicit template instantiations of template class static member variables.
The CIR handling of `dso_local` for globals was upstreamed without the underscore, making it inconsistent with the incubator and LLVM IR. This change restores the underscore.
This adds support for emitting static variables and their initializers.