Add back set_inverse_instance on .add_to_target

We must have it in there too, so when an existent record is being concat to another,
we will have the inverse relation.
add regression test for set_inverse_instance on add_to_target
Merge pull request #12443 from arthurnn/add_inverse_of_add_target

Add inverse of add target