Bind C++ enums declared as `enum` in the IDL file.