[mcs] Release array stack variable once all elements are initialized. Fixes #17942
[mcs] Simplify array element initializer load