Fixed Links To Out Types

This fixes the generation of a bad doc ids for `out` or `ref` types.  Fixes #10.