Use a variable-length integer for many serialization wrappers