Support custom constraints in MVC attribute routing (fixes #1149).