Fix: Account for schemeIdUri, value and id fields in EventController
Created by: dsilhavy
This PR aims to fix the issue described in #3485 (closed) and #3429 (closed):
- The events are now sorted by schemeIdUri and not by id.
- Existing events are only overwritten for similar schemeId, value and id field values
- Events are added if they have similar ids, similar schemeIdUris but different values
- Added additional unit tests
- Fixed a bug in the calculation of Version 1 inband events. Use the PTO from the element instead of the one from the element