Test for memory_region_init, implement inlined vfunc helpers.