Fair point.  ```$MERGE``` could conceivably be an exported function, in which case it would be better to use ```type``` rather than ```which``` in ```validate_merge_type```.  I'll update the patch.