fix bugs in accumulation strategy and state machine
jsonstreamer now emits sax like events while running through a json stream