Text this: Module-oriented automatic differentiation in nonlinear control