[FLINK-1133] TypeExtractor resolves also variables inside Tuple-input

Until now the TypeExtractor only supported simple input derivation from functions like "Function<T, TupleXY<T,..>>".

This PR adds the support for functions with variables in input tuples like "Function<TupleXY<T,...>, T>."