added average_loss computation to statistical outputs
fix typo in the definition of a namedcollection