Fixed traversal based methods: were including nodes of depth 0 in results, causing it to crash when expected different type