Factorize status flags

Use a generic `set(flagName)` method to set flags in the StatusManager, this eases stuff like #394 and #395.