TextFile - Rewrite in progress

- TextFile Rewrite
- Renamed Vector::GetElementType to CTorMode
- Made File and TextFile public functions always take UInt instead of
UInt32, and convert internally
- Added ToInt and ToUInt in Types, to deal with converting from Int64 to
Int depending on build target
- Many CHECK where written with CHECK(). This is changed back to CHECK