Added preliminary implementation of XPath generalization + test class.