Canonicalize formatting throughout.
Canonicalize imports and finalize variables.