Fixed enum toString() and name() invocations that prevent proper API
function when enum name obfuscation is enabled