Fixed group assignment bugs

Bugs primarily introduced by
https://github.com/tnc-ba/strongTNC/commit/a02825e9ac318af4d1cc4b5a0c044b52746c48cd

- Group View: device assignment/save was broken
- Device View: group assignment was broken

Please test thouroughly!