[pedigree] better ordering of nodes in case twins have a relationship
[pedigree] fix a bug crashing automatic layout in some cases (many children) + enable layout improvement after deletions