Renormalization-group treatment of the critical dynamics of superfluid helium, the isotropic antiferromagnet, and the easy-plane ferromagnet