Handle renaming of references

I don't know why, but while this package
handled the uid_catalog id did not care about
the reference_catalog, causing weird issues with
link integrity.
The last removing test does not test changed behavior,
I actually tried test driven behavior and the test
did not fail at all.