Bind C++ enums declared as `enum` in the IDL file.
Support for enums in classes and namespaces.