Hi Luigi,
Bug confirmed, thank you for reporting it. The current version of the CosmeticCorrection process does not preserve image properties, and hence CFA pattern information, in output files. This bug is now fixed and a new version of the CC module will be released as an update ASAP. Sorry for the inconvenience.