added children_, n_leaves_, types to match Ward