Convenience helper for computing a diff for arrays.