Use the correct result value type instead of using getValueType(0)