Validate graph of resources

If A `@SubResource`s and B is not processed (because explicitly so or most likely because improperly annotated), then a compilation error will be raised.