bugfix: the component ID was not used in common ancestor queries, thus possible leading to errounous results (since pre/post order is not globally unique any longer), it also speeds up the query