implement YAML marshaling
Merge pull request #75 from rogpeppe/029-yaml-marshal

implement YAML marshaling