bugfix in Gen; make API change explicit for Gen.merge