scoped is_ancestor calls with 'this->' to satisfy compiler
removed references to ptrdiff_t
Tweak type def for node_base_type to satisfy MS compiler