Hi,
yes, this is intended and correct.
The 'plugin' and 'hotspot' arrays are predefined have an predefined 'type/class' for new elements.
But for creating the display object itself, it's necessary to call also addplugin/addhotspot.
Best regards,
Klaus