loose instanceof: check constructor function name instead

#287 fixed and rebased on top of #288. Tested minified version with testling (minified with `browserify test/*.js | node_modules/uglify-js/bin/uglifyjs > test.js`)