function toHash( arr ) {
	var obj;
	var i;

	obj = {};
	for ( i = 0; i < arr.length; i++ ) {
		obj[ arr[i] ] = true;
	}
	return obj;
}
Converts an array to a hash.

@private
@param {Array} arr - input array
@returns {Object} hash