Fix file array parsing for flat file arrays.

The file array parsing was not correct when handling flat file arrays.
When dealing with flat arrays we don't need to munge data nearly as
much.

Fixes #3364
Fix warning when _ids is an empty value.