lol join the club, i've had these exact issues for months. i've replaced the AFM, cleaned the iacv, replaced the 02 sensor and reset the
ecu, made no difference. i've finally given up and booked it in to subaru friday week (even they had no idea when i was explaining the problems on the phone), they think they'll probably need the car a couple days to diagnose. Will let you know how i get on,