Made removeAllChildren() optionally recursive.