[5.0] Routing : add matchPattern function

And use it for `is()` and `uses()`
It can only be done using `call_user_func_array` which wouldn't be pretty.