Tokenizer::setVarId: better handling of c++ casts