How can the hot pipe cause turbo lag issues?
Particularly in the early V9Xs, the hot pipe would balloon under turbo pressure (remember the air is at 200C or so). The time taken to fill the balloon then squeeze the rest out into the intake contributed to the lag.
I'd check the actuator first. At idle, make sure it's moving up and down (in and out of the turbo) about 3-5mm almost randomly. If it's not, your car's old enough to have aged the vac hoses and they may be cracked, hardened or split.
There are two other areas involved with the actuator - the solenoid itself, which is located under the turbocharged air hose in front of the turbocharger (between the turbo and the radiator). This particular item has failed a fair bit in the past. The other is the brake booster, which works on vacuum. I've read 2 reports where the vacuum valve in the brake booster has failed and the vacuum is lost in there - but so is braking performance, so you'd know if it happened.
A dirty MAFS - or worse, a damaged MAFS - will cause faults in reading the air quantity entering the intake and it can make the car blow excessive smoke and perform poorly. Try cleaning it: use an electrical circuit cleaner or MAFS cleaner (they're the same thing) and make sure you never make physical contact with the innards. If cleaning it doesn't work, it may be damaged - oil-based filters that are over-oiled will deposit small particles of oil on the wire which is then heated and carbonises the oil. The MAFS will need to be replaced if this is the case. If you don't use an oil-based filter you can probably not bother replacing the MAFS and just look elsewhere. Don't replace the MAFS straight away - Nissan want about $400 for them, see if you can borrow one first.
A stuck EGR valve will also cause issues. First, the pressure inside the exhaust will be reduced preventing the turbo from spooling as well as it could. With that much exhaust gas entering the intake, the fuel won't burn as well = lots of black smoke. All the extra exhaust in the intake will dramatically affect performance, including idle & start.
Boost leaks can cause issues like this too. Look for black oil around the air hosing between the turbocharger and the intake manifold. If you see it, you've got a leak.