C++11: Use std::extent<decltype(x)>::value instead of
sizeof(x)/sizeof(x[0]) for sizes of stack-allocated arrays.