code: function(name, val, resolveUp) {
                  // Allow variables with dots by automatically creating the
                  // nested structure
                  var parts = name.split('.');
                  var obj = this.variables;
                  var frame = this;
  
                  if (resolveUp) {
                      if ((frame = this.resolve(parts[0]))) {
                          frame.set(name, val);
                          return;
                      }
                      frame = this;
                  }
  
                  for (var i = 0; i < parts.length - 1; i++) {
                      var id = parts[i];
  
                      if (!obj[id]) {
                          obj[id] = {};
                      }
                      obj = obj[id];
                  }
  
                  obj[parts[parts.length - 1]] = val;
              }
docs: ... set('foo.bar', 'fb')