Fixes test_node errors and failures by new namespace cache
Changes key cache to List. Order matters
Fixes failures of test_namespace_preservation
Merge branch 'master' into issue-943
Changes to look at previous sibling and parent