Issue #636, Issue #664: [pedigree] fixed inifnite "move a node ot the right" bug; improved insertion location for new relationships