Add support for inferring mapper and reducer classes by reflection