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

I found it confusing that the method is called createTempFile, but returns FileInputSplit.

This is up to you (aka matter of taste), but I find it clearer if the tests are after each other and the helper methods come at the end.