fix: fixes error in scope traversal
fix: fixes error in scope traversal

If childPath.value and child are both 'default' array they are not of
the same instance, but we must not throw an error in this case.

benjamn/ast-types,benjamn/ast-types,benjamn/ast-types