Force `type` to be camelized in pathForType.