C++11 strongly-typed enums fix for Java only

Take into account strongly-typed values scope name