code: function routeTypes(routeMap) {
  	var typeSet = {};
  
  	var keys = Object.keys(routeMap);
  	for (var i = 0, len = keys.length; i < len; i++) {
  		var route = routeMap[keys[i]];
  		var type = routeType(route);
  		typeSet[type] = true;
  	}
  
  	// Use RouteTypeFields ordering
  	var typeList = [];
  	var fields = Object.keys(RouteTypeFields);
  	for (var i = 0, len = fields.length; i < len; i++) {
  		var type = RouteTypeFields[fields[i]];
  		if (typeSet[type]) {
  			typeList.push(type)
  		}
  	}
  
  	return typeList;
  }
docs: Get a list of route types found in the provided route map, in canonical order