Add util to handle 1 elem JSON arrays being converted to objects

(Also ran IntelliJ’s code reformatting)
Merge pull request #15 from seattleu/shakeel/supplierBug

Add util to handle 1 elem JSON arrays being converted to objects