Add option to enforce template uniqueness

## What this is

Add an option (disabled by default) to check that all the routes are unique