fixed unittests false positives and add a lot more
streamparser which passes NEARLY all tests except for the array detection thing, switch statemachine back to lastsigchar instead of events