loose instanceof: check constructor function name instead