function(doc) {
  if ('type' in doc && doc.type !== 'Notebook' && doc.type !== 'object') {
    emit([doc.type, doc.name], 1);
  }
}

function(doc) {
  emit([doc.type, doc.name], 1);
}

Allow anything to be edited via Types list
Allow anything to be edited via Types list

Bit nuts...but now it can edit itself!
