added yaml dumper that renders OrderedDict to YAML map

fix yaml dumping while using state `file.serialize`