Fix debug output.
Make renumbering whole networks work.