Don't call dup on a type

https://github.com/D-Programming-Language/dmd/pull/2791