When a Contact is added to a Person set the Contact's Person to that Person.
Review Request #1863 — Created Sept. 30, 2022 and submitted — Latest diff uploaded
Also fixed a leak in the unit tests that valgrind wasn't seeing for some reason.
Ran the unittests under valgrind.