Improved indexer, so that generated schema files mention resources. This helps debugging schema creation