Fix handling of custom ffi fields of enum/flags type
Fix handling of custom ffi fields of enum/flags type

Previously tried to use 'field' table to resolve the enum value, which
obviously could not work.  Use the enum/flags table (as passed in the
field definition table) for this task as it was intended.

zevv/lgi,pavouk/lgi,psychon/lgi