Text this: Cartesian closed 2-categories and permutation equivalence in higher-order rewriting