Improving duplicate menu item detection

https://github.com/sergeche/docpad-plugin-menu/issues/6