type PtrEq = dyn Fn(&dyn Array, &dyn Array) -> bool;
A type-erased function that compares two array for pointer equality