[CSharpBinding] Fixed null reference exception.
[CSharpBinding] Pathed document now uses the type system segment tree
to improve it's item recognition.