Fix for the write_xy_header() method.
The args are now explicitly reset as they are lists and are persistent!
Authored by: bugman 2010-02-19
Parent: [r10784]
Child: [r10786]