Forgot to mention the technical details: Microsoft Visual Studio Enterprise 2017 Version 15.0.26228.9 VA_X.dll file version 10.9.2212.0 built 2017.03.23
I also noticed that with regular 'int' or 'unsigned int' (instead of the Windows typedef) it works correctly even with an array. It also works if I replace UINT32 with MyInt which I typedef'ed to 'unsigned int' for the testing. Not sure what is special about UINT32.
In case you're still experiencing the issues with 2212 (or you're already using it) can you please try creating a clean new win32 project, paste your code snippet on the last line of Win32Project1.cpp (or something similar) to see if you're able to reproduce the problem there?