Fix link offset when marshaling Time.

See commit message for explanation.
Closes #2670.