Add cycles and maxCycles as global variables.  Add missing toString to
ProgramContext.