Add support for typedefs

Typedefs are hyperlinked, both at the definition and at any references.
Searches using type: and type-ref: now find typedefs.