Fixes two issues with offline traces (#1729 (closed)): first, changes the reader to not assume a separate tid header right after the initial tid,pid header, as offline traces (as opposed to online) do not contain it. Second, changes raw2trace to not emit a superfluous tid entry of 0 just prior to the real initial tid entry for each thread.
Adds asserts to catch related errors in the future in the test suite.