ENH cleanup in check_pairwise_arrays, raise error on sparse input in chi2_kernel and manhattan_distance