Allow arbitrary variable nodes in UFL expressions
I have recently used AD w.r.t. custom variables in forms. For some reasons, we were not allowing arbitrary Variable nodes so far.
@rhess You wrote the old handler for the adjoint stuff. You might want to have a look.