It would be interesting to see just how much a dealer would give for a vehicle they know might need the engine replaced. With the wide variance of fix options between just changing head gasket and changing the whole engine, they would likely offer you a trade based on the worst case scenario. You could win, or the dealer could win.