Fix operator errors/__tostring for unnamed classes.