Hello again!
I actually ended up solving this one myself, by using a different approach.
Instead of using get_posts(), i used get_pages() which supports a hierarchical tree structure, thus outputting the array as desired.
I hope that will help someone. 🙂
// Thomas G