Get rid of broken handling of unknown enumerators.

Adds a bunch of broken tests to expose the problem.

A future fix will make those tests pass.