Use `grunt.util.kindOf` to detect type. Closes mikaelkaron/grunt-json-replace#1