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

Can we have records of length 0?