HPCC-9553 Support typedefs as the base type for ENUM definitions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>