add types for structs with type members and val members