You probably have already considered this, and it helps only under certain conditions, but you could assign each tree entity an action with just one line:
action any_tree { my.untouchable = on; }
or add the line to your tree action if you already have one