References correct grunt API

- Uses `grunt.util.kindOf` rather than the incorrect `grunt.util.typeOf`