fix for wrong tree structure upon importing an qti package (a bug fix and some improvements)
http://forge.taotesting.com/issues/2993