Add TypesWhenWritingTsvJobTest

We have seen a weird type mismatch error when joining two RichPipes. It's possibly caused by cascading has changed the way it optimizes flows, and is reusing the on-disk representation.
Add this unit-test to validate this situation.