apply replacements in global initializer merging