Update

Updates for newer versions of `AD` and `lagrangian`. These changes update everything except the `LinearTesting` module.