Cleanup statics.

Substitute run-time table generation with equivalent constexpr.
Merge pull request #1212 from ktf/fix-statics-DTSequentialCellNumber

Multithreading fixes -- Cleanup statics in DTSequentialCellNumber.