(CDAP-718) Added auto output key/value classes detection to MapReduce.

same here, I think it is better to verify that it has 4 type parameters?