Fix mods and annots for Object case in toTree