Add an integration test for array flattening.

This was already fixed, this test just makes sure it stays that way.
(fixes #406)
Merge remote-tracking branch 'upstream/master' into ready/406-overly-nested-array-flattening
Merge pull request #453 from sellout/ready/406-overly-nested-array-flattening

Add an integration test for array flattening.