Add support for OptionMem and use GLib mallocs in test-x86.vala