[NUCRDBMS-811] Fix enum constraint values when using getValue extension
[NUCRDBMS-809] Contrib for getValue, but extended to be not just for
simple Enum fields