Extract method .load_yaml_configuration
Fail with TypeError if config file is malformed
Merge pull request #1511 from bquorning/hashify-configuration

Raise TypeError if the config file is malformed