Kill off some usages of the ArraySize macro.

This required the use of std::array in some cases.

Blame Windows case-insensitivity in cmd for closing the other similar named PR.