Ticket #170: Improve previous commit

Wrong version of first #170 patch was landed. This updates it to its last
version. It introduces ActionGroup.__iter__()