support den == NULL in fmpq_mat_get_fmpz_mat_colwise