input stream changes

- Add sanity check for data size in case raw data feed contains broken
records.

- Additional sanity check re |parts| for each of the event types.

- More data checking logic.  Notice a theme yet?