add new function query helper, instead of throwing an error, convert query to function type
Merge pull request #54 from goodybag/54-query-type-fallback

Assume unknown query types are just functions