Update EnumerationOption value and construction..
Update EnumerationOption value and construction..

The enumeration options now returns the enumeration value instead
of the enumeration object.
When created from a unique list of objects the value is set to the
name instead of an incremented number. The original behaviour can
be restored by converting the list to Enum directly.

dergraaf/library-builder,dergraaf/library-builder