Bugfixes. Changed code so that AST nodes are left untouched and new nodes with equivalent values are pushed on the evaluation stack.