Refactoring: Change scope in query interpreter from mutable to immutable HashMap

 Changes scope in query interpreter to use more suitable immutable HashMap instead of mutable one