[Fixes #81205368] cleaning up default attribute initialization sequence ...

...so that events are fired consistently for each attribute. also moved setting of name and parent attrs before setting all others so that they are available at the time events are thrown for the other attrs