Test round-trip of PyObjectRef.
Consistent refcounting behaviour when converting object references.