The role of cavity dispersion in cw mode-locked dye lasers