Implement EZP-21501: Support object state group limitation in API

https://jira.ez.no/browse/EZP-21501