Added a lot more validations to config.getObject, wrote loadYamlObjects.