Fix bugs with restrictions
This PR addresses some of the issues as reported by Katie:
- collection name for named individuals was being malformed due to a bug in how the names are parsed (fixed via 4690b6)
- nested restrictions were not being serialized into the project schema TTL due to a bug (fixed via 40dcde)