Fixed a few bugs:
- publishing a non-string message converted it to a string before writing
- new config wasn't dealing with addresses that weren't already arrays

added corrisponding tests as well.