Templates dereferenceable uris

Closes #50