Updated the ReducedFunctional after recent changes in dolfin-adjoint