New implementation of adjoint dependency propagation through linear solver, #889
Code cleanup, #889