speed fixes

hash lookup for var names
and rewritting of function call nodes