Use instanceof instead of constructor.name

Because of uglifying. See https://github.com/mishoo/UglifyJS/issues/290
for the details.
Bump version