Make module reader not return negative span when port location changes.
Make TR optimizer tests reset the port line counting.

This means new logging lines should not change the numbering of all existing
logs making diffs much cleaner.
Add delays to unboxed let to avoid optimizing twice.