[WIP] fix bug #245

@ljorr1 exposed a bug in the dead code elimination w.r.t. DoWhile loops. I've added two tests, but have not yet been able to work on the underlying issues.

@7andrew7 if you have a sec to look at this, alone or joint with me, would appreciate it!