Add support for ENUMERATED in identifier-only form

ENUMERATED supports also identifiers only without values, defaulting to 0 and incrementing. The grammar was already defining it, but the semantic code was not ready to accept it. Added also a testcase.