First, I must say that I'm not very familiar with the path integral formalism, so maybe I'm missing something very basic.
In Section III.A. of this paper, Toms considers a particle in $D$-dimensional Euclidean space, whose position is specified by $q^i$, constrained to an arbitrary surface given by $f(q)=0$. Its Lagrangian is
$$L=\frac{1}{2}\dot{q}_i\dot{q}^i-V(q)+\sigma f(q),\tag{3.2}$$
where $\sigma$ is a Lagrange multiplier. In order to apply the Faddeev-Jackiw formalism, he writes it in first-order form, defining the canonical momentum in the usual way, so
$$L=p_i\dot{q}^i-\frac{1}{2}p_ip^i+\sigma f(q)-V(q)\tag{3.4}.$$
Now, he treats $\sigma f(q)$ as part of the symplectic part of the Lagrangian. As he explains generally on page 5 and particularly on page 9, this is better motivated if we rename the Lagrange multiplier $\sigma\to\dot \sigma$ and treat $\sigma$ as a new variable. He does not, but let me do it for clarity.
After that, he applies the procedure and finds another constraint $\partial_i f~ p^i=0$, which is included using another Lagrange multiplier $\dot{\lambda}$, so the final Lagrangian is
$$L_f=p_i\dot{q}^i+\dot{\sigma} f(q)+\dot{\lambda}~\partial_if~p^i-\frac{1}{2}p_ip^i-V(q)\tag{3.12'}.$$
Finally, after the whole analysis, he gets the path integral measure
$$d\mu=\left(\prod_i[dq^i]\right)\left(\prod_i[dp_i]\right)[d\sigma][d\lambda]|\nabla f|^2.\tag{3.23}$$
So far, so good. What happens now is that I'm not sure how he gets the partition function
$$Z=\int\left(\prod_i[dq^i]\right)\left(\prod_i[dp_i]\right)|\nabla f|^2~\delta\left(f(q)\right)~\delta(\mathbf p\cdot\nabla f)\\\times\exp\left\{i\int dt\left(p_i\dot{q}^i-\frac{1}{2}p_ip^i-V(q)\right)\right\},\tag{3.24}$$
especially the delta functions of the constraints. I see that it makes sense, but I would like to obtain it mathematically.
I would propose the following
$$Z=\int\left(\prod_i[dq^i]\right)\left(\prod_i[dp_i]\right)[d\sigma][d\lambda]|\nabla f|^2~\exp\left\{i\int dt~L_f\right\}\tag{1},$$
where
$$\int dt~L_f=\int dt\left(p_i\dot{q}^i-\frac{1}{2}p_ip^i-V(q)\right)+\int dt~\dot{\sigma}f(q)+\int dt~\dot{\lambda}~(\mathbf p\cdot\nabla f).\tag{2}$$
The second integral is
$$\int dt~\dot{\sigma}f(q)=\sigma f(q)-\int dt~\sigma \frac{df(q)}{dt}=\sigma f(q),\tag{3}$$
where I took $df(q)/dt=0$ since the constraint must be preserved. I am not sure at all that this is correct, since the second constraint is precisely the time derivative of the first one and I'm not taking it to be zero in the third integral of $(2)$. However, doing the same for the third integral of $(2)$, I get
$$Z=\int\left(\prod_i[dq^i]\right)\left(\prod_i[dp_i]\right)[d\sigma][d\lambda]|\nabla f|^2~e^{i\sigma f(q)}e^{i\lambda~(\mathbf p\cdot\nabla f) }\\\times\exp\left\{i\int dt\left(p_i\dot{q}^i-\frac{1}{2}p_ip^i-V(q)\right)\right\}\tag{4},$$
which apart from $2\pi$-factors from the Dirac deltas, gives $(3.24)$.
I'm almost sure that this is not correct, but I would like to know exactly why and how to get $(3.24)$.