Refactored lookup tables and associated code: extracted common code and types into support routines and types and rationalised the code.
Value names in .vi (ini format) files are now specified using string constants instead of string literals. Existing constants renamed.