Generalize `all_identical()` to encompass the use of arbitrary pairwise comparisons, including `all.equal()`. C.f. statnet/ergm#603 and statnet/ergm#604