improvements to variable evaluation order in the generated source code