Fixed XPath AST for :last-of-type

This should count following nodes, not merely the position.