write/readZigZagVarint32 for ProtoBuf.js