Refactor *identifier-case* option into a dynamic binding.

That makes it much easier to use from about anywhere in the code, which
is what is needed. In passing, fix #129.