#5780 Crash on template code below Tokenizer::setVarId(). Fix several crashes with same location.