Fixes to get the singlePushNotification test (and other push tests) running. There were problems serializing enums, problems deserializing UUIDs, incorrect use of message UUID as a device UUID and some refresh index issues.