fix flattening lists with strings, closes #56