Extend the dumper API to include dump_start and dump_append. Restore
dump_write to its previous implementation.