changes to maq error model and Avro code

This affects the maq error model, which was outright broken, the
documentation, and the code that writes an output file, which swallowed
some output.  The actual format is considered preliminary, though.