formats: fix duplicating _auto metadata fields
pass metadata in and out reader/writer as OrderedDict