Ensure that vectors are not treated as functions

This improves error message when returning vector from route.
Merge pull request #129 from immoh/improve_error_message_for_vectors

Ensure vectors are not treated as function responses