Added specific clone method to loss functions, so they are cloned with their identity, not the parent base class identitiy