Added x->Integer and x->Real casts.
Improved Analyzer context handling.