fix: minor fixes to only_once define work
optimization: created MERGE_G_F, minor optimized version of MERGE_G