Fix ModeT and add TimeT

I got ModeT wrong in a previous commit. ModeT seems to be the same type across different architectures of the same platform. TimeT is needed for a pull request that I will submit soon.