[XS] Change in pysim[master]: utils: DataObjectCollection.encode(): fix TypeError