Adds a constant to the internal structure of a worker.
The worker to modify
The value to add as a constant
The modified worker
The index of the constant (used for adding wires to other objects in the worker)