Fix Rpleth xml serialization and 'length' typo