Fix primary tree twiddle.
Fix primary tree twiddle.

Was hard coded to work only when the key and first part are identical.
Also added two parts after the header so `undefined` if there is only
one part and lost if there are more than two.

Closes #160.

bigeasy/amalgamate,bigeasy/amalgamate