make validator check if writemask doesn't make sense
add some actual tests
fix check for printing default writemasks
fix issue with handle_remove_jump()

We wanted to test if a CF node was the last in the list, but we did it
incorrectly resulting in Scary Things (TM).
add a new IR test

This one tests deletion of a jump instruction and an if.