compact serialization of variable length unsigned integers