fix and unify template parameter name

    OutputType => ValueType
    OutputVal  => ValueType