Fix handling of scalar types in cs_project