fix for begin(function(a,plus(1,a))(1),type(a)) which should return symbol; this will not work for a tail recursion a better fix is needed.