revert some of the design decision about locally unqiue columns

Since we can just avoid to include an equal join on corpus_ref the node id and other columns can be unique for the whole top level corpus instead for each document. pre and post order are still unqiue only inside a component.