Update variable expressions

* Change expr._Variable to expr.Variable
* Add 'namespace' argument to expr.Variable
* Get rid of useless expr.comp method
* Updated implementation of variable singleton