WyIL: Fix for #454

Updated LoopVariants phase to correctly account for code blocks.