Fix code generation in normal table backend
Fix definitions generation for certain switch