The weired behavior I see is that when I try to use context helper (Ctrl+Space) the function call to scope_Variable_variable() gets called and in the popup box correct variables are displaying. But if I write any undefined variable after '.' the error doesn't get caught and the scope function is not called.
I tried moving VariableSettings to a level higher and writing it under Model, this works fine and the scope method gets called after I put '.'!
I really don't know how to solve this problem. My model is fixed so it is not possible for me to move VariableSettings under model. Do you know how to debug this? Where are these methods get called??