Generate a CBOR Term corresponding to a top-level name.
Since we apply this to a monomorphised CTree, the names must be monomorphic terms in the original CDDL.
This will throw an error if the generated item does not correspond to a single CBOR term (e.g. if the name resolves to a group, which cannot be generated outside a context).