fix array manipulation when doing string format

https://github.com/paulcbetts/splat/issues/36