Extend reference-format setting to support hiding refs based on type

If a reference type is prefixed with `hide:` then those references are
not shown.

Fixes #274