more tests, less bugs on codelist links (see details)

- value types can change _to_ name-based links
- links can be properly cloned
- value functions can be compared and expose their state