allowed decoding of variable-length vectors
added encoder