Fix CPPN_insert_link
Squashed a few bugs.

First error-free run, hooray!
Squashing some more bugs, others remain