Make BitVector and ByteVector serializable