Add speculative comment in PB::Model::Generator
Refactor and extend write-message()

Factor out wire type map and value encoding, and sketch support for
repeated fields (no packed handling yet, though).