Fixed serialization issue with TreeMaps containing recursive references.