[FLINK-1186] Fix wrong flat key position when using expression key for nested tuples