The built-in G1000 now works without any of this Mobiflight tomfoolery required. The only thing that doesn’t work atm is the VNAV from the Working Title G1000 NXi. The code I have above fixes that.
That said, I’ll probably share my updated G1000 panel that incorporates that fix at some point. No programming required. You just import a new instrument into AM and use that instead of the stock G1000.