fixed bugs in copyRange and moveRange so that they workwhen moving or copying a range within the same branch