Use temp variables to simplify code.

Using *tok->variable()->type()->derivedFrom[i].nameTok* to access an array element is simply too much.