bugfixes within session handling and UA_Guid_copy function