Makes MultipleInputsGate objects printable with toString. Fixes bug where getOutput would return wrong value for Xor and Or gates.