support decoding of enumerated values.