Simplify DomBasePanel.expandMembers() implementation a bit