raise StreamError on bad input
release 0.4

* raise StreamError on bad input