More fixes to transmorfiming to optimized code.