extend set and list equality