Resonant-scattering (autoionisation) contributions to excitation rates in O4+ and similar ions