Properly handle atom keys in kw_list_to_string
Merge pull request #2282 from bitwalker/macro-to-string-fixes

Properly handle atom keys in kw_list_to_string