Don't call dup on a type
Merge pull request #1701 from yebblies/duptype

Don't call dup on a type