Using the GLib.Marshaller.Free method means we don't need to have the g_free function definition duplicated all over the place.
No real code change, just renaming and adding boilerplate. Files will be re-indented in another commit, to avoid confusing git.