Okay, tested for leaks again after re-torquing the bolts on the plenum and throttle - tried running it with the idle hole blocked off and it cut out, so that's something. It's still idling at 3-4k though - I think the idle valve is screwed.
Maybe I should start another topic for this, but the other symptoms haven't gone away.
I replaced the crank sensor today, and the fault light has gone away (even under acceleration) but the symptoms haven't. Still idles high, very sluggish under hard acceleration, although it seems possible to rev as high as I want as long as I do it gradually (I haven't gone above 4.5k though as I'm running in new rings and bigends). More than about 3/4 throttle and it bogs down, like it's retarding fuelling.
I began to suspect the unichip might be at fault as it hasn't been remapped yet. So I bypassed it, and the car is now on stock C25XE management. The hesitation is much less pronounced (because of the power reduction), but it is still definitely there. Hard acceleration causes nasty sluggishness, which worsens the more throttle you apply.
I'm running out of ideas what this could be. Throttle position sensor? :-?