The 12CO/13CO ratio in AGB stars of different chemical type - Connection to the 12C/13C ratio and the evolution along the AGB