Install a smaller and with less dependencies package.
Since salt is now able to pass real types and not just yaml, take that into account.

Refs the changes from #8289.
Merge pull request #8332 from s0undt3ch/issues/__sls__-KeyError

Take into account python types not just Yaml strings