minor refactoring. process CCSs in breadth-first order (this will be necessary for nested checkboxes)