Did you get any codes? I would think with a bad MAF you would either get a rich or lean code.
Have you tried unplugging the MAF to see if that smootheds it out? Not sure about subarus, but a lot of ECMs will put in a substituted value if the MAF is unplugged.