Support category 3 files export for measures with multiple populations

Per our testing we found that when exporting measure with multiple populations in a single QRDA Category 3 file, it duplicates results of a single population and calculates them wrong.

Following code changes resolve this issue for us.