Crosschecking sparsity pattern between DAG and AMPL; minor clean-up in
the code