Fix CloneToProcess for TypedTerm::Boxed
It did not convert the boxed Term to a TypedTerm before calling
clone_to_process again, which violates the checks that only immediates and
boxed terms can be clone_to_process in CloneToProcess for Term.
@@ -811,7 +811,7 @@ impl CloneToProcess for TypedTerm {
&Self::List(ref inner) => inner.clone_to_process(process),
&Self::Tuple(ref inner) => inner.clone_to_process(process),
&Self::Map(ref inner) => inner.clone_to_process(process),
- &Self::Boxed(ref inner) => inner.clone_to_process(process),
+ &Self::Boxed(ref inner) => inner.to_typed_term().unwrap().clone_to_process(process),
&Self::Literal(inner) => inner,
&Self::Pid(inner) => unsafe { inner.as_term() },
&Self::Port(inner) => unsafe { inner.as_term() },
