Fix 'case' to throw error when a clause is ill-formed