I don’t know. Perhaps it is a bug in the latest version ?
You could try rolling back to an earlier DC version.
As said many times elsewhere, Dynamic Components is a proprietary, closed-source native extension for SketchUp (whose intellectual property belongs to Trimble, Inc.)
Using Ruby code to create DC components is basically “hacking”. It requires guru level knowledge and ability in Ruby, SketchUp and Dynamic Components. There is no handbook or programmer’s reference to “hacking” DC components. (Sorry.)
That said, I do not know what you are doing that is giving you issues. I do not have the time to figure it out.
You are on your own. All I can suggest is that you do something manually using the native DC interface dialogs, and then examine the “dynamic_attributes” dictionaries using Aerilius’ Attribute Inspector to see the results that are normal hidden from users. After changes, always examine both the definition and instance.