`simple_types_filter` is only supposed to work for `dict`. Refs #9860.

cherry-pick simple type filter so that salt-cloud -Pyd -m <mapfile> doesn't fail on doing an iteritems on an empty datadict.