bugfix

$affectedLeft/$affectedRight in function move produced wrong results when moving between different root_ids because $node[$root] was updated to destination root_id too early.