Replace uses of void with None
Make loops work in term tree evaluator