Generalise the representation of OTF's constraints

to match the new dolfin-adjoint framework.

This temporarily breaks examples/orkney_steady (SLSQP doesn't
handle multiple constraints correctly, I think), but I'll look
at that later.