I think that Teresa said "I really don't know him [Kerry] well, we've only been married for ten years." Hence contributions could have been made from Heinz to the Reagan Library several years before Heinz married Kerry.
At the time the Reagan library was funded, John Heinz III was still alive, and presumably, overseeing the contributions of the foundation with his grandfather's name.