improve error on invalid vars file (if its a list instead of a dict)
Merge pull request #5259 from mvo5/bugfix/improve-error-on-invalid-vars-file

improve error on invalid vars file (if its a list instead of a dict)