Corrected size of calculations for arrays

Previously the size of the entire std::array structure was being
included into the size for the final data to be packed into a buffer.