Better type support

Support array and hash for value to osx_defaults.

Using dict as type is currently broken as the value is quoted while dict expects one or more key/value pairs.

This fixes this by adding support for array or hash as the value parameter.