index.js :: always close if we have one

Otherwise you end up with a JSON stream that doesn't close.
test/3.js :: test for proper handling of empty arrays
index.js :: push through an empty string if we're streaming nothing
test/3.js :: test for empty array without open/close