fix error 'model' referenced before assignment

- treetransforms: add --ensureroot option