Clean up and improve Dot CodeGen
Add Set Instruction Optimization as whole program optimization