Update smtpapi_headers.js

addSubVal function was replacing old values for same key by new value in subsequent calls.
addTo function supports adding multiple recipients one by one but addSubVal function was missing similar functionality. 
fixed error in addsubVal function.