Add support for struct members and embedded structs

Flatten out embedded or field structs when doing a struct scan,
allowing population of multiple struct types in one query.