Finalized behavior of forEachChild() and forEachName()
Added getChildren().