varlen encoding fixes
varlen decoding fixes
message.py test fixes
type.py test fixes