index: handle the case where the UL node is not the immediate parent of the LI
index: fix 0 -> i bug
test: add multi-P add/remove tests