Fix name shadowing in TypeScript enums

TypeScript does not auto-escape Something.name() as Haxe does, we need
to choose another name.