tests: add mounting to strict routing test
Support non-string path in app.use(path, fn)

fixes #2207
perf: fix optimization on router exit