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