Unbreak test_cmakemanager testReload
The pointers of targets are not stable across reloads anymore,
since the type of a target may change. It could even potentially
move into a separate subfolder. It's really not worth it to optimize
this, so that's why we don't do it. Fix the test accordingly.