Form widgets: Add reset handling via $.extend, not $.widget to avoid additional subclass depth
(cherry picked from commit 871a4f868dffc5cb17f654bf75f14607accd5c92)
addFirstLastClasses: Add it to widgets via $.extend, not $.widget, because it does not use any widget factory features.
(cherry picked from commit f12ece0b02391c3cbc4d67d031d060437eac93ea)