#531 invalidate object cache saving group

also save and remove permissions changed (previously all permissions were removed and saved permissions in the form)