Fix `loopIndex` mapping for group steps in `TimerMachineHelper`