Produces a WarpScript code fragment which will regenerate the N top levels of the stack. The content of those levels is consumed off the stack.
Note that some types of objects created by third party functions may not be serializable,
SNAPSHOT will emit a STRING of the form
UNSUPPORTED: class xxx when such a type is encountered.