Support for function argument to merge() (and a fix in the lambda function conversion)