Prohibit recursive refs (fixes #27)