[DDMD] Replace uses of `enum XXX` as a type with `XXX`.

This allows matching types by string, and is not valid D code anyway.