Handle global values in ConstFolding