@Thaddy: That's good to hear! Thanks for the info!
@ASerge: I still keep getting memleaks. I'm adding the elements of the array one by one now as a workaround and that solved some of them but there are probably problems somewhere else. I wish there was a more extensive explanations on how to make a managed type with refcounting and what cases have to be handled.