Slight fix in MesquiteTree to keep flags array the right size