Merge identifier variants whilst keeping compatibility.

This will smoothly migrate all identifiers to V2.

Fixes #56.
Fixes #79.
Fixes #149.

This will need to wait for some ci tests.