Fix string-flatten - old one didn't handle non-strings