Support non-string path in app.use(path, fn)

fixes #2207