Decode enum types and add helper to enums