pub fn encode(value: &Value, out: &mut Vec<u8>)
Encode one value, choosing the smallest representation.