I've checked that in database and it looks like this:
When I add widget through api with
<object> syntax, the DB record in custom table that represents my page type with this HTML field looks like this:
<object codetype="CMSInlineControl" ...
But when I go to admin panel and click save, then this record looks like this:
The same goes for CI files when they are generated