[BACKLOG-1562] Add support for ACL shadow nodes in repository - added new tests, fixed several bugs