Fix legacy search location gateway not correctly quoting depth column
Fix EZP-23517: Excluded uri prefixes result in redirect loop

> https://jira.ez.no/browse/EZP-23517

`URLAliasRouter::needsCaseRedirect()` didn't check if requested path was excluded from content tree jail.

Added a test.
Cleaned up UrlAliasRouterTest