Fixed bug incorrect JSON when analysing only 1 file.

The enclosing object notation "{" and "}" were missed out
when analysing only a single file, breaking the ecomp batch parser.

Now single file batches are modeled as a collection of one object.