Added new check for temporary variables for expressions.

Gives priority to find temporary.
Modified the indexExpr handler method

The method would insert the type of the expression as the variable type in the symbol table which is wrong. Thus symbol table check is seperated from expression check.