Serialise and deserialise opaque IDs on LookupRefs
Merge branch 'add-ids-to-lookup-refs' into stage