Creates a T preference for the key using the enum class type T with a default of defaultValue
Creates a T preference for the key using the enum class clazz with a default of defaultValue