Optimizer tests pass.  Begin nested switch case generator