Improving the YAML serializer (warning: technical developer-ery content)