Fix case with one when

This branch adds a guard clause to skip any mutation that would result in a case statement without a when clause.

This fixes #52