[webgpu] allow overloads to Program::AddIndices (#24021)
### Description
This change allows more overloads for the `Program::AddIndices` method,
and makes use of r-value references for parameters when possible.
Also fixed the implementation of the `AddInputs` and `AddOutputs`
methods to use r-value references for the parameters