base: fix various issues with form elements that were apparent in IE 8