Simplify `publishAttributes`, use `undefined` instead of `nob` to register a property with no default value