refactored query dsl walker (needs better name), added scope and depth hints to visitor