Fix YAML generation to not permit duplicate notes

Make previous commit ISO C compliant