First post, and I want to thank everyone who posts their problems and solutions here; it's been a great resource for me recently.
I'm looking for some help with a problem. Apologize in advance for the long post, but I want to be thorough.
2008 115 DPXSCR
Ser. 05213752
Some background - While still under warranty a couple of years ago, engine just stopped running. I brought it back to my dealer/mechanic, who found some problem that was so interesting that BRP asked to have the powerhead shipped to them (never found out what the problem was). In return, they shipped a different powerhead to my dealer who installed it and returned it to me. So, dealer installed new powerhead under warranty. Clear?
Fast forward to last year. Same mechanic repaired my steering rack and throttle/shift cables, and it hasn't run well since. Hard starting. Rough idling. Dies while idling, dies as soon as it's put into gear. Mechanic re-adjusted the throttle ("it's the best we can do"), and things improved slightly, but still pretty bad. And it kept getting worse. Still died a lot while idling, and then wouldn't go higher than 3000 rpm, and then 2000 rpm.
At this point I had lost a lot of confidence in my mechanic. Closest other mechanic is 2.5 hours away and about an extra $200 in transportation costs. So, about 3 weeks ago, I thought I'd see what I could do myself. I don't have the diagnostic software, so this is all just wrenching and a lot of amateur guesswork.
Removed the lower covers to access the exhaust fitting, and found the exhaust housing covered with oily exhaust soot, which I cleaned off. Cleaned the exhaust fitting (which was completely carboned) and changed the plugs (which were pretty clean), and it ran beautifully at speed (up to 5000 rpm for the first time in a year!), but it still died at idle, to the point where it was unusable.
Removed the exhaust valve actuator, and found that the articulated linkage that connects to the valve lever arm was completely disconnected! Tried to move the lever arm with my finger, and it wouldn't budge.
I thought that the exhaust valves were stuck due to carbon build-up, and I'd have to expose the exhaust housing to clean/replace them. No problem. Looked easy in the service manual.
Removed the lower unit, and, on a whim, removed the exhaust valve actuator again to see if I could move the valves. Instead of my finger, this time I slipped a hooked piece of wire down into the cover to catch the lever, and it moved with no resistance at all. Previously, my finger must have applied enough pressure on the lever to keep it from pivoting. So, not carboned-up, but I thought I should check it out anyway.
When I went to remove the 7 big bolts that hold the powerhead to the exhaust housing, I only found 6! The rearmost bolt was missing. Of the 6 that I removed, only 5 had been greased. The ungreased bolt was really, really hard to remove: lots of corrosion.
The pictures show what I found. Sorry for the poor picture quality, but I only had the camera on my phone. (Exhaust valves showed no carbon build-up, by the way.)
In the picture of the exhaust housing, the arrow points to an area of corrosion about the diameter and thickness of a dime.

In the picture of the base gasket (viewed from above), note that the exhaust leak was at the front of the engine, not the rear where the bolt was missing (not shown here). The 2 upper arrows show where the gasket had been pushed deep into a cavity; pushed so hard that the gasket tore in two places. The 3rd, lower arrow shows a complete lack of permatex around the exhaust openings.

The last picture is of the powerhead, taken from underneath as it's hanging from a winch. You can see the soot-coated front engine mounts up at the top of the picture. This is after I'd scraped gasket material away. This just doesn't look right at all, but I don't have a good example to compare it to. I would have thought that there should be a piece of metal where the arrow is pointing.

So, here are my questions:
1. Regarding the corrosion on the exhaust housing, since it isn't part of the combustion chamber and thus isn't exposed to a lot of pressure or heat, would it be okay just to fill that depression with something? I think I'd want to fill it to give a good seal for the gasket. Aluminum weld (a real pain)? Aluminum epoxy (pretty easy)? Or maybe just don't worry about it?
2. For the gasket, Okay, what causes that kind of damage?
3. For the powerhead, is that even close to normal? Is a cast aluminum head really supposed to be wavy like that? Could this head just be defective?
and finally,
4. What kind of recourse do I have here? The engine is out of warranty, but I think that the powerhead was not re-installed properly during service under warranty. I haven't talked to the dealer yet, because I want to get some information under my belt first. Also, while I've lost confidence in his ability to run a mechanic shop (poor quality control), I still value him as a person. He's a good guy, we've worked together in the past, away from boats and broken engines. Could the improper installation have caused the damage that's shown here? If not, what did?
Thanks for any suggestions/insights.