fix codegen bug in typeof() that skipped evaluating the argument