Port Twig's "merge" filter