Support custom constraints in Web API attribute routing (fixes #1278).