cvObtainTerm Term reconstruction
Given a pointer to a heap object (HValue) and its type, build a Term
representation of the object. Subterms (objects in the payload) are also
built up to the given max_depth. After max_depth any subterms will appear
as Suspensions. Any thunks found while traversing the object will be forced
based on force parameter.
Types of terms will be refined based on constructors we find during term reconstruction. See cvReconstructType for an overview of how type reconstruction works.