fixed memory leak in TreeSummary and likelihood vector bug