fixed varint to use new uint32 representation