[SPARK-2342] Evaluation helper's output type doesn't conform to input type