Added node collapse glyph conditional on having children, reset query; refactored: types, example tree.