Fix flattenArray parameter being ignored.
Merge pull request #62 from joe-goullaud/FlattenArrayIgnoreFix

Fix flattenArray parameter being ignored.