Regrssion fix  and code cleanup

1. Regression fix for SSa transforms
2. Minor Code cleanup in the codegens