Aggregate raw results from multiple arrays

Unfortunately, only the first thousand parsed datasets were merged into
the final JSON dump. This was due to the fact that the dump contains
mutliple dataset array results.

Hence, I have written a Proc object for the on_parse_complete event to
aggregate the results.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>