Implement IO#dup