Allow some updates to "dynamic array" in adaptive profile
This page describes what we can do with dynamic arrays in adaptive profile. https://github.com/microsoft/qsharp/wiki/QIR#use-of-dynamically-sized-array Specifically the following example doesn't work.
But replacing this array elements with individual variables works fine.
Consider supporting this scenario as array size doesn't change here. It is useful to have arrays as a way to group qubits and other types into registers of statically known size. In fact, most array sizes are statically known.
Could be in this list: https://github.com/microsoft/qsharp/issues/1306
Let's discuss as part of the bigger "Arrays are terrible, what should we do?" discussion.