Rename PKL::write to PKL::write_xml for consistency.