implement to_string for membership aggregation data structs