ADTypes should be used going forward. We can update in NLSolversBase as well, but we can also restrict the type here.