Fix issue 12771 - Variant opIndex for static arrays is not implemented.

I don't know why static arrays were handled differently before, the code should be the same for both, just assign the result parameter to the value of the array at the requested index.