Fix descendants property for repeated elements.

That might happen if a network exposes elements of subnetworks like in
the SPA module.
Remove debug output.
Fix collapse transform.
Add further transforms.