Convert FileFsFile to canonical paths

Fixes multiple inclusions of res/ directories with transitive
libraries.

This also required making ResourcePaths’s equals and hashcode methods
null safe.
Merge pull request #1042 from charlesmunger/makecanonical

Convert FileFsFile to canonical paths