remove inout, because std.container.Array does not support it
Only implement dup, if dup is provided by store