Make component generator output YAML

After fixing this generator to read in YAML not JSON, I forgot to fix it to output YAML not JSON. This commit makes the generator write YAML. (whoops)