Extend check for enums to account for bit flags.