How to fix widgets that wrap their element?

How to fix widgets that wrap their element?


The spinner widget wraps the input element it is applied to in a div
with some extra classes, and so does resizable (see
http://dev.jqueryui.com/ticket/3446). That produces ugly API issues,
forcing the user to know way more then should be required about the
implementation.
With more form-based widgets coming up (eg. mask, autocomplete,
watermark), this will be even more important to solve now.
Ideas?
Jörn