My bro in law had a problem much the same as the loping idle and after we dug into it found he used to much silicone when he replaced a water pump or thermostat and some of the junk went into a valve in the cooling and pluged it causing it to lope in idle.
It was caught on a sensor that allowed it to idle smooth.