Simplify packed byte array length calculation.