Fixed the SESXMLWriter to save the ses.ordinal, not ses.id
Fixed the case when the ordinal is None
Fixed the case when the ordinal is None (again)