fix Issue 12580 - dup() won't accept void[]

[Issue 12580 – [REG2.066a] dup() won't accept void[]](https://issues.dlang.org/show_bug.cgi?id=12580)