RawData memory management
As raised in !340 (merged), the RawData class doesn't handle it's own memory, but handles raw pointers.
When used in combination with RawDataContainer, this works as intended, but in the cases where this isn't used (mostly test cases, but also some standalone apps), the memory has to be deleted manually.
So the question is whether there's an easy way of modernising this. Would switching to unique_ptr make sense, or does that break in conjunction with RawDataContainer.
Alternatively, should this instead be switched to using something like arenas for managing repeated allocations better.
(I have a feeling this is raised somewhere else, if someone can find another issue to link to)