Fixed collapsing and expansion. (Erroneous auto-collapse of child node's children, nodes disappearing on second expansion, and a recursive case.)