fixed issue with obj_to_uri and uri_to_obj

 uri_to_obj now uses serializeArray and takes jquery form element
 as argument instead of settings.data.