Improved performance of findind the offset of a node in the parse tree.