Bugfixes to make T-trees work with my sentence planner experiments