Add __index metamethod to enum lookup tables for error handling