Not sure about the TJ, but my YJ had a similar issue with the instruments (tach, speedo, odo, fuel, oil, temp) dropping to zero and the panel lights going out, then on, then out, etc. Seemed the bumpier the road the less prone the issue.
Checked the good old FSM to see if there were any common...