code: function argHashToArray(hash)
  {
  	var keys = Object.keys(hash);
  	var result = [];
  	for (var i = 0; i < keys.length; i++)
  	{
  		result[parseInt(keys[i], 10)] = hash[keys[i]];
  	}
  	return result;
  }
docs: utilities Turn a function argument hash into an array for slicing.