Ensure that vectors are not treated as functions

As discussed in #127, this improves error message when returning vector from route.