[v6r7] Bug fix prods status

This contains a bug fix for the production status set by the TransformationCleaningAgent, that was there since... the beginning. I target v6r7 hoping no-one is using an older version (and the Transformation System(.

I also added few logical fixes.