I do believe `eachWithIndex` is clearer. It also feels more in style. But I agree that the case is less strong than when we could use just `each`.
Not sure what you mean by 'special treatment'.

BTW there needs to be a space after the comma in `builder.put assays[i].patientInTrialId,value`.