sritchie/carbonite — pull request #4 by trptcolin (2012-07-12 13:19:23+00:00)
Title: Perform references when reading collections & maps

This is the stuff we talked about on twitter/IRC. Maps ended up more complex than I thought - possibly something wrong with Kryo, but it's hard to say. Without the custom reference resolver, the first map reference would get lost somehow - further nested ones seemed to work fine, the reference objects being read always seemed to fetch the *second* entry. And this was only with maps - vectors seemed to work fine, and seqs also didn't seem to need anything special.

So this gets all the tests passing that I could think of, but it's certainly possible there are cases I'm not thinking of. I did also hack around with test cases that complicated the nesting + repeating, but threw them away since they already seemed to work.