improve handling of function summaries with structs