Combine multiple items of same array by specific key

Replying to myself because I found a working solution:

It is actually possible with a script found here: How to join elements in array by Merge key / Combine arrays by key by Function item - #3 by Benjamin123