Fix stream
Fix stream handling:
- calling conventions for parseFile in stream mode
- add 'outFile' option to mainFunction stream protocol
- sort json dict keys and start/endRe events
- add catchall for exceptions in streaming mode
- remove unnecessary 'try' block in parseStep, exceptions are treated by (4) or cause clean parser suicide in non-stream mode