Implemented deriving native types for enum entries. Minor refactoring.
Implemented deriving native types for enum entries. Minor refactoring.

rryk/omp-server,rryk/omp-server,rryk/omp-server,rryk/omp-server,rryk/omp-server,rryk/omp-server