[CS] Code style fixes on the libraries/cms folder. Closes #4976