Improve type error message in cypher `reduce(...)`

For the case where the accumulator and the expression have mismatching
types, it was not clear that the type error was for that reason. This
change improves the message for that case.
Merge pull request #2806 from cleishm/cypher-reduce-type-error

Improve type error message in cypher `reduce(...)`
Merge pull request #2807 from cleishm/browser-redirect-x-forwarded

Respect X-Forwarded-* when redirecting to browser
Add test for browser redirect