Minor bugfixes for cohortData with more than one outcome.