Fix path normalization in resource relative-path operations. Also, change scanning of types and classifiers to return a mapping of TypeAndClassifier to ConcreteResource so we don't have to recreate the latter to use them.