First draft of type safe enumerations.
Future version will also be properly serializable.
Authored by: keess 2002-06-27
Parent: [r149]
Child: [r151]