More case sensitive fixes

This time an issue with cmsContentType in ContentTypeRepository. Make
sure to use nodeId instead of NodeId