I'm very sure there's no other hash references in there. I double checked that. I don't know anything about read only flags, so I suspect it's not that.
I'm going over everything again, and haev even sucked a colleague in, but I've stumped him as well.