AD-enabled stuff builds fine now. The problem is that it builds *for every computation* due to the way virtual templates work. I need to find a way to change this behavior...