Fix variable nesting to 2.

There can be infinite nesting if 2 objects refer to each other.
Similarly, too many nesting can cause problems. So for now, limiting
nesting to just 2 levels. Later, we will add a command to expand a
variable.