[FLINK-933] Add primitive input format to read a sequence of primitives

This closes #47
[FLINK-993] primitive input format fails for invalid input.