Fix array wrapping around hash types.

When a hash is passed into Puppet, it is actually a singleton array with a hash. Therefore, it needs to be "unwrapped" by grabbing the first element.