Improved the arbitrary GR path feature. Introduced caching for GrammaticalRelation.isSubtypeOf, which greatly improved performance.