fix a handful of problems in rrdcopy