Call to undefined gsub on line 47

If you assign smart vars to puppet classes, it returns them as a hash in the YAML as opposed to a simple array [].
This fix ensures that Foreman return values are converted to the expected array.
Error: undefined method `[]' for nil:NilClass at line 1

This fix resolves an issue where parameters may be given, but the requested key isn't present.
Allow data structures in Foreman

This change allows users to store YAML in Foreman to support data structures.

In foreman, you can assign this value to the param "testhash":

name1:
  - val1
  - val2
name2:
  - val1
  - val2

The result will be a hash the user can interpolate into variables in a puppet module.
Merge pull request #11 from markizano/develop

So sorry!