After some time I found this weird... Bug? I'm willing to bet it's just compiler optimization at work.
The following are screenshots taken after compiling the code. I'm ashamed to say this took me at least 15 minutes to figure out.
|This doesn't (std::array is not a defined type)|
|This works. Wat?|