form2: added support for html attrs arrays, added data-validate and data-ajax-validate attrs