the structure of a Prolog term during copying to heap to preserve
sharing, so a structure subterm that was previously copied has a heap
pointer in place of the psc pointer as the first word. Testing for
interned structures didn't handle this. The fix is to move the intern
test to after the already-copied test. (I have no real idea why this
didn't trip us up before.)