Added `compact` flag to `Model.set()` to allow for combined `set()`/`unset()` operations in one `set()` call.
Added test for `compact` flag.