add ignore_branches kwarg to TreeChain