enum: add missing Enum.value property (#2739)

* enum: Add Enum.value property

* simplify

* address review
2 files changed