bugfix related with sparse jacobian with loops when several indexed independents use the same independent at different iterations
improved error message in sparse jacobian generation with loops