Integrated Andre's fix for proper memory cleanup/deallocation in the consensus tree routines.