Added bolt latency in TopologyStats.
Small code modifications.
Fixed compilation issues with generics, which appeared with some compilers.