Make BadJacobian instantiable with sparse matrices