Consolidate C<use constant> statements.
Improve thread safety.

Move away from using stringified references.  The references can
change when threads come into play, but the saved string versions
won't.  This includes using fork() on Windows.
Minor syntax cleanups.  Nothing functionally significant.