Implemented deriving native types for enum entries. Minor refactoring.
Wrote down the implementation idea as a comment. Minor refactoring.