This patch uses the socket type as opposed to the result type in the switch case that initialize the values of the single input value results, since that makes more sense as we are retrieving the values from the sockets. This also matches the implementation in pixel operations.