Make merge accept iterable.