support json/msgpack arrays

This is per https://github.com/fluent/fluentd/issues/335