Now it really works without any trouble.
Stupid me has witten a debug code that only checks the first index of the allocated array: (thingy.array)[0].something = 3;
This works indeed. However, when testing higher indices the engine crashes as expected.
Thank you for pointing this out!