It seems like there is still a small issue when switching the default device. Consider this example:
Devices available and enabled at application startup: Default, Built-in output, Soundflower (2ch), Soundflower (64ch), with Soundflower (64ch) being the device marked as default in macOS settings.
If I now set Soundflower (2ch) to be the default device instead and read the BASS output device list again, it will disappear from the list of enabled devices. If I switch back to Soundflower (64ch), that one will disappear from the list and the 2ch device will be enabled again.