Improve the ArraySize function a bit now that c++11 isn't forbidden there. Error messages should be friendlier now.