Chef 2540

fix CHEF-2540 - add test for string, and for the presence of a map! function before trying to use the "other"