fix tree-to-string forest so it works with cube pruning assumptions