Using an environment as previously done generates a stack overflow when serialized. The data part of XPtrs is not serialized, so avoids this issue, while also avoiding the copying issues that prompted use of an environment.