use if statement blocks for conditionals

fixes AccelerateHS/accelerate#184
codegen while loop wibbles