Fix bug of HiveSimpleUDF with unnecessary type cast which cause exception in constant folding