Fix Java wrapper "enum class" return failure
Related to issue #17744 (closed), the Java wrappers had been implicitly converting enum to int, which does not work for enum class.
This does not fix the related bug where the Java wrappers fail if a method has int and enum overloads, e.g.
void SetNorm(NormType n);
void SetNorm(int n);