Preparing for union implementation.
Added NodePath which is going to be used to compare nodes according to document order.
Initial implementation of unions.