fixed an issue with constants being used in "instanceof" expressions