[FLINK-1062] Type Extraction for Lambdas

I implemented the Type Extraction and updated all classes such that no Exception is thrown anymore when a user uses lambdas. I also added/updated several test cases to test the implementation.
I think this should be a `ClassNotFoundException`