Add reverse dependency lookup to FileMap.
Fix bug with adding sources in FileMap.