Merge layered objects.