I've had the battery and tcu unplugged for a hour or so. did not help. Maybe I'll try a longer period..

The odd thing is that once or twice the 4th gear remained engaged when I changed from manual to automatic during highway cruise.

Could the program selector be malfunctioning somehow? The switch has 3 wires plugged in it, how does it actually work? Disconnecting the switch doesn't make any difference.