Discontinuous additive functionals of dual processes