add transform_destroy_rec(...) to destroy an entire transform subtree