fix for type check of reserved identifiers in compiler.