This looks pretty correct from the Weld-side to me, I think it will correctly create the necessary structures.
We have a few tests in the TCK to verify this structure, and I can write some more if needed (and also to test some edge cases which you are perhaps unsure about...) - just let me know.