Test case for bug 1395242.
grovel: improve CONSTANTENUM and CENUM

The grovel syntax for CONSTANTENUM and CENUM now uses the BASE-TYPE
argument to construct the appropriate printf(3) format string.

Fixes bug #1395242.