Performance Improvements

Significant improvements to the runtime of core XPath and XForms functions (path resolution, template contextualization, etc).
good catch