Better error handling for invalid schemas. TODO: Add verbose logging and better notifications about cyclical/invalid schema references