Enable deep_merge to take a resolution fun