void write(QDPSerialFileWriter& qsw, XMLBufferWriter& rec_xml, const OLattice<T>& s1) { qsw.write(rec_xml,s1); }
void write(XMLBufferWriter& xml, const QDPType<T,C>& s1) {write(*this,xml,static_cast<const C&>(s1));}
void write(QDPSerialFileWriter& qsw, XMLBufferWriter& rec_xml, const OLattice<T>& s1){  qsw.write(rec_xml,s1);}