Intermittent Idle speed and unwarranted Transmission downshifting on 2004 Jeep Grand Cherokee

Driving on flat road with cruise engaged or not, transmission will downshift for no reason (as if I began going uphill). Also idles high at times. Revving up momentarily usually drops idle rpm back to normal level. Both somewhat intermittent but regular. Both began at same time.