I'd yank a 2.7 out of a newer Rav4 or Tacoma. New parts, easy to find replacement bits... but it's a lot of work.
Oh - on your engine, I second the yank the head and see advice. It's busted anyways, so maybe you get lucky and it's just a crappy gasket that dissolved or something.