GbDocumentManager: add find_with_type() helper

This will return the first document matching a given type. Convenient
if you have a singleton type document.