Change WriteTo and CopyTo to return total bytes written/copied