[[feature-enumvalueref]] libfoundation: Add enumerated type definition.