Made LinearSolverInternal non-abstract to allow use of sparsity pattern propagation, #934
Added test for #934