GRE-339: when serializing and desirializing xml, choose between strick and forgiving modes