Change Enum Flags support to support all integer types