add: tracking of node chain from root

This is needed for scenes with VisitSubTree cores for example, since
otherwise the "instance" of the sub scene containing the hit can not
be identified.
Suggestion and tesing by Johannes Brunen, many thanks!
fixed: avoid incorrect evaluation of assert condition

Without the parenthesis in a condition of the form a <= b only a would
be negated instead of the result of the comparison.
regenerate base of compat/depreciated state

Reported by Patrick Palmer, many thanks!
fixed: external lib builds