Stav dette: Module-oriented automatic differentiation in nonlinear control