Improved tree generation from zest code.