updateRepeat function

Update the repeat field (argument 'rep' in Bolus and Infusion constructors).