RFC: initial statically compile out if(true) and if(false)

 This is a fairly incomplete version of statically compiling out if(true) and if(false). if(false) should already be prohibited by the unreachable code analyses.

I would like to get some feedback if it is the right way to do this inside the texgen or if any other place is more appreciated ? Currently only if statements without any elseif are optimized to keep the sample simple. If this is the desired way to do this optimization I will continue with my work and extend it to cover ifelse constructs too.


relates to issue #571