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

This closes #47
[FLINK-993] Primitive input format fails for invalid input. Adapted documentation.