Fix ns_set_misc and cs_set_misc
Fix sometimes not unloading all modules on shutdown
Only set stuff in ExtensibleUnserialize if there is something to set