Codec implementation for Vec<T>.
Vec<T>
For portability and consistency between architectures, the length of the vector must fit within a u32.