gh-155315: Fix marshal round-trip of shared frozendict references (GH-155316)