Changed _drupalgap_form_render_element() to properly set a checkbox as checked if its default value is 1. Changed theme_form_element_label() to first look at the element.id for the 'for' attributes value, then look for an actual 'for' in the attributes object within the element.