support for ref links

fixes https://github.com/lacarmen/cryogen/issues/39