Unbreak expandMembers

Previously, a refresh of a DOM panel tree like

ROOT
 -a
   -b
     -c
       +d
 +c

would expand the second "c" as if it had the level of the first, and a
refresh of

ROOT
 -a
   -b
     -c
       +d
 -e
   +f

would collapse "e".