Allow Kotlin to use typed objects as enums