I have a simular problem on 96', 3.2 rodeo. Sometimes idles very high 1200-1800 rpm but if key is turned off and restarted a couple of times, idles fine. Sometimes starts fine but then after driving a few miles and stoping at a red light, high idle returns. Replaced EGR valve and cleared code. Replaced IAC valve, TPS and mass airflow. Cleaned throttle body, used throttle body cleaner while engine running to check for vacume leakes Everywhere with no sign of lead anywhere.
signed, Humble in the garage.