Make consts of degenerate nullary enums not ICE.

This makes the const construction code match the logic in type_of.
Add a test for nullary univariant enums.
Merge pull request #4358 from jld/constenum-unit

Fix consts of nullary univariant enum type.