Add helpful method to find out about unresolved cross-references
Improve error messages