Ensure that link values are strings before adding / removing refs
Only allow "add", "remove" and "replace" operations in `transform()`
Expand comments in Cache
Privatize `_xxxxRef` methods; Introduce `_transformRef`