Similar bug here
I just got an anmswer from the Service Desk:
Hello,Thank you for report.Error if Val1 using in *OnArray functions is already fixed. Please wait for the next build.
In the current build you may declare this array as global or use "static" modifier when declaring it.