code: function detect_list(type, doc_map) {
      if (doc_map[type])
        return _.flatten(_.map(doc_map[type], function(d) { d[type] }));
      else
        return null;
  }
docs: for detecting mixins and alternateClassNames