WIP Fixing a bug with repeated children
Fix bug with recursive serialization