Simplified the parsing and serializing of variable ints.