Make ModesManager iterable.

This is now possible:

for mode in editor.modes:
    print(mode)