replace length-prefixed varint with uint32

Turns out most bindings just use uint32 instead of a varint.  Let's be
compatible at the expense of a one or two extra bytes.