Generalize serialization of date/time structures by looking for (to/from)ISOExtString instead of concrete types.