Extend loss mixin to support multiple loss functions
There is no reason why a primitive would not be computing multiple loss functions internally.