Allow custom queries to return a list of simple types instead of actual
classes