Clean up the native loader
Review Request #2471 — Created June 16, 2023 and submitted — Latest diff uploaded
The native loader code was written a very long time ago before I knew about g_propagate_error and did some weird things with trying to use memory from the module that it just unloaded. This takes care of all of that.
Ran the unit tests without issue