Sketch of YAML dump code.