Serde Serialize/Deserialize implementations for HVec10240.
Extracted from hyperdim.rs to satisfy the 500 LOC gate.