Add enum type support

Add enum type support and refactor value converter module