Add first() and last() in TagNodes.