Handle generators that alternate directions in compound generator
Handle generators that alternate directions in compound generator

This proved to be tricky. The code for compound generator has
gotten quite complicated.

dls-controls/scanpointgenerator