Fix consts of nullary univariant enum type.

Currently such consts cause an internal compiler error, but there aren't any tests for them; these changes fix these problems.