Update smtpapi_headers.js to improve addSubVal functions

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.