Add splitting functions

- explode and rebuild added to separate the id from the event counters
- types renamed (and usage of opaque) for better semantic meaning