Put representative value (1-N) to Leaf id
Fix aberrations in triangularisation with array overflow