Support structs as result types for native queries