fix readFields and writePacked; better pbf.finish
add a big bunch of tests