build API upon #read_enum_attribute/#write_enum_attribute
simplify initialization hook
refactor usage of Enum class, analog to Coder#dump/load
extract dirty methods as module