Text this: On the differential geometry of the wald test with nonlinear restrictions