Compute module direct dependencies more correctly - by recursively examining
the imports and all of the entities that they introduce.
Write bitcode files directly instead of through the old cacher.
Serialize generics correctly.