esme: smpp pdu field is a string and needs conversion

I take the chance to also swap the two log parameters, because they are
included into a dictionary and shown in swapped order in the log anyway,
which distracts me every time I look at the values.

Change-Id: I6e6ec5b9980958de82ade40e4cd898dc6f1b889f
diff --git a/src/osmo_gsm_tester/esme.py b/src/osmo_gsm_tester/esme.py
index 376152a..c838841 100644
--- a/src/osmo_gsm_tester/esme.py
+++ b/src/osmo_gsm_tester/esme.py
@@ -121,8 +121,9 @@
         if isinstance(pdu, smpplib.command.AlertNotification):
             self.dbg('message received:  AlertNotification:', ms_availability_status=pdu.ms_availability_status)
         elif isinstance(pdu, smpplib.command.DeliverSM):
-            self.dbg('message received:', user_message_reference=pdu.user_message_reference, references_pending_receipt=self.references_pending_receipt)
-            self.references_pending_receipt.remove(pdu.user_message_reference)
+            umref = int(pdu.user_message_reference)
+            self.dbg('message received: DeliverSM', references_pending_receipt=self.references_pending_receipt, user_message_reference=umref)
+            self.references_pending_receipt.remove(umref)
 
     def receipt_was_received(self, umref):
         # return umref not in self.references_pending_receipt