Properly handle item_position when creating/moving or copying node