code: function(list){
  	var rethash = {};
  
  	if( list && list[0] ){
  	    if( us.isArray(list[0]) ){
  		each(list, function(item){
  		    var key = item[0];
  		    var val = item[1];
  		    if( ! us.isUndefined(key) ){
  			rethash[key] = val;
  		    }
  		});
  	    }else{
  		each(list, function(item){
  		    rethash[item] = true;
  		});
  	    }
  	}
  
  	return rethash;
      }
docs: Returns a hash form of the argument array/list. For example ['a',
  'b'] would become {'a': true, 'b': true} or [['a', '12'], ['b',
  '21']] would become {'a': '12', 'b': '21'}. Using mixed sub-lists
  is undefined.
  
  @param {Array} list - the list to convert
  @returns {object} a hash