fix more uninitialized fields in enum
split the "enums" table in two
add a function to iterate through enum values, similar to structs