When loading a yml file in hash format, we take the root key of the
hash and set it as a key attribute on the object.
If a key attribute is specified in the yml file, make sure we
don't overwrite it with this new default.
This change eliminates some duplication in yml files where it is
common to have some sort of key or name attribute that is the same
as the original key from the yml file's hash.
key
attribute on the object.Example
would now simply be: