[APIs] Enhance test coverage for CollectionInputFormat and add tests for failed serializations of user code objects
[FLINK-1263] [optimizer] Implement compatibility checks for binary operators and custom partitioning

This closes #223