More parts in place, decode_vector, encode_int, and encode_long lest.
More fixes.