export format: support arbitrary number of secondary edges

when marking heads, add '-HD' as function label, so that
autotamatically added heads can be distinguished from 'HD'
as originally in the treebank.