in smart pointer support, throw if toIntermediate is called on an unset smart pointer
in smart pointer support, throw if toIntermediate is called on an unset smart pointer

doudou/modelkit-component,doudou/modelkit-component