This extension deals with ReferenceOr enums in the spec
All these methods assume the spec has been previously dereferenced,
see the deref_all method in the spec object.
These methods are still needed because structs hold ReferenceOr enums, although
these enums always have an item, never a reference.