diff-endpoints: Handle return types with lists and maps