As long as the compression on the engine is fine, more thanhalf of your worries aren't.
Piston slap is not only just a block issue, but a known issue with the 4.0 and doesn't seem to be that much of a cause for concern. If the price is right, I'd go for it.
Before you do any work, tho, you may want to invest in a "dye check" kit - what you get is a few small spray cans with some cleaner, some penetrant dye, and some developer that reacts with the dye. Follow the instructions, and the kit is used to check for surface cracks.
Check around the valve seats (mainly) with checks of the head deck for insurance.
The key questions I'd ask on a used head, if the owner is available:
"Has the engine been severely overheated?" (iron heads are more tolerant of heat than aluminum, but can still be cracked by overheating.)
"Have you ever had the head off?" if yes...
"Did you let it sit overnight before you pulled it?"
"Did you follow service literature when you pulled it?"
Those are the first that come to mind. The 4.0 head is a rather heavy iron casting and fairly resilient, so you probably don't have any worries -doesn't hurt to check, tho.
5-90